Preview:
//|--------------|//
//| DO NOT TOUCH |//
//|______________|//
let i = 0;let light = 1; let ropes = 0;onPlayerChat = (pid, msg, chat) => {const allowed = ["ItzStubZ"];if (msg.startsWith('!clear ') && allowed.includes(api.getEntityName(pid))) { const u = msg.split(" ");api.broadcastMessage(`Cleared ${u[1]}'s inventory!`, { color: "gold" });api.clearInventory(api.getPlayerId(u[1]));}if (msg.startsWith('!bringall') && allowed.includes(api.getEntityName(pid))) { const here = api.getPosition(pid);let moved = 0;for (const id of api.getPlayerIds()) {if (id !== pid) {api.setPosition(id, here);moved++;}}
  api.broadcastMessage(`Brought ${moved} players to ${api.getEntityName(pid)}!`, { color: "gold" });}if (msg.startsWith('!tp ') && allowed.includes(api.getEntityName(pid))) {const u = msg.split(" ");api.broadcastMessage(`Teleported to ${u[1]}!`, { color: "gold" });api.setPosition(pid, api.getPosition(api.getPlayerId(u[1])));}if (msg.startsWith('!bring ') && allowed.includes(api.getEntityName(pid))) {const u = msg.split(" ");api.broadcastMessage(`Brought ${u[1]}!`, { color: "gold" });api.setPosition(api.getPlayerId(u[1]), api.getPosition(pid));}if (chat !== "Tribe") {
	const name = api.getEntityName(pid);
	if (name === "HerobrineRobloxTV") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "crown fa-bounce", style: { color: "gold" } },
	             { str: " 👑OWNER👑", style: { color: "cyan" } },
	             { str: "] ", style: { color: "black" } },
	             { str: name, style: { color: "blue" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     	} else if (name === "ItzStubZ") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "crown fa-bounce", style: { color: "#F4320B" } },
	             { str: " Admin ", style: { color: "red" } },
	             { str: "] ", style: { color: "black" } },
	             { str: name, style: { color: "#F4320B" } },
	             { str: ": ", style: { color: "#F4320B" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     	} else if (name === "Gamermixer_Adam_0w0") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "fa-shield fa-bounce", style: { color: "white" } },
	             { str: " Mod", style: { color: "black" } },
	             { str: "] ", style: { color: "black" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
} else if (api.getItemSlot(pid, 46)?.name === "HerobrineRobloxTV") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "#db9a32" } },
	             { icon: "star", style: { color: "white" } },
	             { str: " Hero", style: { color: "#94c2ce" } },
	             { str: "] ", style: { color: "#db9a32" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Cyan Wood Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "#4479ff" } },
	             { icon: "star", style: { color: "white" } },
	             { str: " Support Student", style: { color: "#35a4ff" } },
	             { str: "] ", style: { color: "#4479ff" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Diamond Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "black" } },
	             { icon: "star", style: { color: "gray" } },
	             { str: " Businuss Student", style: { color: "cyan" } },
	             { str: "] ", style: { color: "cyan" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Purple Wood Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "blue" } },
	             { icon: "star", style: { color: "white" } },
	             { str: " Nurse", style: { color: "#7763e8" } },
	             { str: "] ", style: { color: "blue" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
 } else if (api.getItemSlot(pid, 46)?.name === "Lime Wood Helmet") {
	         api.broadcastMessage([
	             { str: "[", style: { color: "white" } },
	             { icon: "star", style: { color: "red" } },
	             { str: " Aid", style: { color: "#red" } },
	             { str: "] ", style: { color: "white" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     } else {
	         api.broadcastMessage([
	             { str: "[", style: { color: "Gray" } },
	             { icon: "user", style: { color: "Gray" } },
	             { str: " No role yet", style: { color: "Gray" } },
	             { str: "] ", style: { color: "Gray" } },
	             { str: name, style: { color: "white" } },
	             { str: ": ", style: { color: "white" } },
	             { str: msg, style: { color: "white" } },
	         ]);
	     }
	     return false;
	 }
};
onPlayerJoin = (pid) => {
	if (api.getItemSlot(pid, 47)?.name === undefined || api.getItemSlot(pid, 47)?.name === 'LWhite Wood Chestplate') {
	 api.setItemSlot(pid, 47, "Light Gray Wood Chestplate", 1, {
	     customDisplayName: `Uniform shirt`, 
	     customDescription: `Yo school uniform shirt.`,
	 });
	 api.setItemSlot(pid, 49, "Black Wood Leggings", 1, {
	     customDisplayName: "Uniform Pants",
	     customDescription: "Your school uniform pants.",
	 });
	 api.setItemSlot(pid, 50, "Black Wood Boots", 1, {
	     customDisplayName: "Uniform Shoes",
	     customDescription: "Your school uniform shoes.",
	 });
	}
	const nameTagInfo = {
	 subtitle: [{ str: `student` }],
	};
api.setTargetedPlayerSettingForEveryone(pid, "nameTagInfo", nameTagInfo);
	const name = api.getEntityName(pid);
	if (name === "Gapviz") {
	 api.broadcastMessage([
	     { str: "The Owner ", style: { color: "#679ec1" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "#679ec1" } },
	 ]);
	} else if (name === "bloxdio_nation") {
	 api.broadcastMessage([
	     { str: "The Admin ", style: { color: "#ffc83d" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "#ffc83d" } },
	 ]);
	} else if (name === "Nightmare_MC") {
	 api.broadcastMessage([
	     { str: "The Mod ", style: { color: "orange" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "orange" } },
	 ]);
	} else if (name === "DEKU_HERO12") {
	 api.broadcastMessage([
	     { str: "The co-owner ", style: { color: "green" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "green" } },
	 ]);
    } else if (name === "Omz_fun_gurl_power294") {
	 api.broadcastMessage([
	     { str: "The co-owner ", style: { color: "pink" } },
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game", style: { color: "pink" } },
	 ]);
	} else {
	 api.broadcastMessage([
	     { str: name, style: { color: "white" } },
	     { str: " has joined the game! Say hi!", style: { color: "#3273ff" } },
	 ]);
	}
	api.setWalkThroughRect(pid, [-10000, -10000, -10000], [-10000, 10000, 10000], 0);
};
onPlayerLeave = (pid) => {
	const name = api.getEntityName(pid);
	api.broadcastMessage([
	 { str: name, style: { color: "white" } },
	 { str: " has left the game", style: { color: "red" } },
	]);
};
function sidebarUI(playerId){
const space = "----------------------------\n"
api.setClientOption(playerId, "RightInfoText", [
{ str: "Hero Survival Server\n", style: { color: "red", fontSize: "25px", fontWeight: "800" } },
{ str: space, style: { color: "#555" } },
{ icon: "crown", style: { color: "gold" } },
{ str: " OWNER:\n", style: { color: "gold", fontWeight: "700" } },
{ str: "HerobrineRobloxTV\n", style: { color: "red" } },
{ str: space, style: { color: "#555" } },
{ icon: "crown", style: { color: "magenta" } },
{ str: " Co-owner:\n", style: { color: "red", fontWeight: "700" } },
{ str: "ItzStubZ\n", style: { color: "magenta", fontWeight: "700" } },
{ str: space, style: { color: "#555" } },
{ icon: "wrench", style: { color: "blue" } },
{ str: " CUSTOM SMP\n", style: { color: "red", fontWeight: "700" } },
    { str: "  - Welcome to Hero Smp!\n", style: { color: "cyan" } },
    { str: "  - Earn money! Get rich! And cause mass destruction on other players!\n", style: { color: "cyan" } },
    { str: space, style: { color: "#555" } },
 { str: "BEST SMP fr\n", style: { color: "RED" } },

])
   }
onPlayerJoin=(playerId) => {
    sidebarUI(playerId)
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter