I am trying to give myself KickGUI permissions through a Server-Sided Script.
Here’s the code:
repeat wait(0.1) until game:IsLoaded()
game.Players.PlayerAdded:Connect(function(p)
local plrgui = p:WaitForChild("PlayerGui"):WaitForChild("KickGUI")
if p.Name == "hasoco" then
plrgui.Enabled = true
end
end)
If you know anything that can help, it will be appreciated!
I don’t think this is required if you have the PlayerAdded event before everything else, but check each line to see where your print statements stop running.