It's a script inside the serverscriptservice, i tried using a local script and a remote event but the result was exactly the same, nothing. What am i doing wrong?

wait()
local players = game:GetService("Players")


function onPlayerAdded(player)
	
	local name = player.Name
	
		if name == "iiiAmericanLight"
	
	then
		
		print("Player is" .. name)
		
		 local localscript1 = game.ReplicatedStorage:WaitForChild("Adminstuff"):WaitForChild("ChatthingyForMe"):Clone()
localscript1.Parent = player.PlayerGui
localscript1.Disabled = false
		
		end
	
	
	
end




players.PlayerAdded:Connect(onPlayerAdded)

3 comments

0

try using local function instead of function

0

nope, doesn't change a thing

0

everything looks right, just make sure its in a server script(located on the server) and that your username is spelled right