Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why is my kick script not working i cant understand the output why? and the error is diff

Asked by 4 years ago

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
1
Just switch end and end) RealTinCan 217 — 4y
1
Oh and alos make player:kick to player:Kick('A message if you want') RealTinCan 217 — 4y
0
kthx Vortex_Vasne 89 — 4y

2 answers

Log in to vote
1
Answered by
Jxdenx 45
4 years ago
Edited 4 years ago
game.Players.PlayerAdded:Connect(function(player)
    if not player:IsInGroupID(666) then
    player:Kick("Text")
end
end)

Try this..

0
i don't think this will work. there is a ) that has to be closed at the function seikkatsu 110 — 4y
0
yeah, I just edited it. I forgot about it. Jxdenx 45 — 4y
0
13:18:37.936 - IsInGroupID is not a valid member of Player Vortex_Vasne 89 — 4y
Ad
Log in to vote
0
Answered by
seikkatsu 110
4 years ago

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!

Answer this question