local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")

local adminpanel = PlayerGui.AdminPanel

game.Players.PlayerAdded:Connect(function(plr)
	if plr.Name == "UnlimitedRBLX"
		then
			game.Players.UnlimitedRBLX.PlayerGui.AdminPanel.Enabled = true;
	end
end)

game.Players.PlayerAdded:Connect(function(plr)
	if plr.Name == "smoomysman"
		then
			game.Players.smoomysman.PlayerGui.AdminPanel.Enabled = true;
	end
end)


Here is my script, I'm quite tired since I stayed up all night which makes me slightly more dumber so I'm probably gonna get a lot of things wrong but I am looking for a fix. What should I do to fix this?

2 comments

0

Is this in a LocalScript?

0

Yes, it is in a LocalScript. Sorry for the late response, had trouble logging back into my account.