So I basically have this script in my PlayerGui
I do not get an error when i run this and it wont run the print.
I need help
local player = game.Players.LocalPlayer
script.Parent.DescendantAdded:Connect(function(child)
print(child.Name)
player:Kick("You try hack. You die")
end)

4 comments
and ik its noot good to kick players from a local script but im transfering later
The reason you dont get an error is because theres no need of localplayer if your not talking about the character,tool or guis.
this is a script in the player gui its used to detect if a player gui is added and then kick the player if a player gui is added
sorry for the late reply btw. and its a local script