Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Kicking on playeradded errors default scrip?ts

game.Players.PlayerAdded:Connect(function(p)
	p:Kick()

end)

I noticed that Kicking on player added errors a lot of scripts

Scripts that I haven't even wrote

default roblox scripts like

PlayerGui:GetTopbarTransparency should only be accessed from a local script.

Infinite yield possible on 'YourMom:WaitForChild("PlayerScripts")'

3 comments

0

Try putting it in a local script. This has to be a roblox issue.

0

it might be doing this because you are kicking the player before roblox scripts can do stuff if you want to avoid that mabe try a wait before kicking

0

in a localscript it works no error but server script

1 answer

Your code looks fine, i'd guess the errors are on Roblox's side. Do those errors still occur if you disable/remove your playeradded script?

This discussion is preserved as it was. New answers, comments, and votes are closed.