This is my script, it works in studio but doesn't work in studio. Please help.
function Join(plr) game.StarterGui:SetCore("ChatMakeSystemMessage", { Text = "[SERVER] :: "..plr.Name.." Joined the server!"; Color = Color3.fromRGB(220, 180, 58); Font = Enum.Font.ArialBold; FontSize = Enum.FontSize.Size18; }) end game.Players.PlayerAdded:connect(Join) function Leave(plr) game.StarterGui:SetCore("ChatMakeSystemMessage", { Text = "[SERVER] :: "..plr.Name.." Left the server!"; Color = Color3.fromRGB(220, 180, 58); Font = Enum.Font.ArialBold; FontSize = Enum.FontSize.Size18; }) end game.Players.PlayerRemoving:connect(Leave)
I saw you commented that it was a server script in workspace. Try moving the script to ServerScriptService - depending on where a script is it might not execute.
is it a global script? and is there a function called leave