the output: 11:52:59.449 - Workspace.Script:4: function arguments expected near 'end' scriot:
game.Players.PlayerAdded:Connect(function(player)
if not player:IsInGroupID(666) then
player:kick
end)
end
the output: 11:52:59.449 - Workspace.Script:4: function arguments expected near 'end' scriot:
game.Players.PlayerAdded:Connect(function(player)
if not player:IsInGroupID(666) then
player:kick
end)
end
game.Players.PlayerAdded:Connect(function(player)
if not player:IsInGroupID(666) then
player:Kick("Text")
end
end)
Try this..
i don't think this will work. there is a ) that has to be closed at the function
yeah, I just edited it. I forgot about it.
13:18:37.936 - IsInGroupID is not a valid member of Player
your "end)" should be after the "end" because you have to close the if statement first AND THEN close the function with a "end)" also hit that accept button if this helped you!
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Just switch end and end)
Oh and alos make player:kick to player:Kick('A message if you want')
kthx