Normally i have a training place, that was open to everyone.
But once the people that was not in the group started exploiting, i decided to make it only allow group members.
And kick other. But since monday this week, the kick if not in group, has started to glitch, it kicks people not in group, BUT if a guest joins, it kicks EVERYONE.
What updates have been made the last week, that could cause Guest’s to crash a 18 player server by the fact that they get kicked?
and the script is as simple as this.
TRA = "165491"
game.Players.PlayerAdded:connect(function(Plyr)
if Plyr:IsInGroup(TRA)
then else
Plyr:Kick()
end
end)
Is that the whole script, and are you sure that specific script is the cause for this behavior? There’s nothing wrong with the code logic there at all. Unless you have Plyr defined somewhere else in the script, I don’t see how this could be causing issues in this specific script. I can assure you it’s not an issue with an update.
That’s impossible for it to be kicking everyone from that script, unless ROBLOX accidentally broke :Kick() to where it shuts down the server if a guest is kicked. Master, link me to a game where you have admin that doesn’t have a group-kicker in it, and I’ll come on a guest. Kick me and see what happens.
game.Players.PlayerAdded:connect(function(Plyr)
if( not Plyr:IsInGroup(GroupId) )then
Plyr:Kick()
end
end)
[/code] [/quote]
None of you seem interested in actually reproducing the bug, if it exists, and instead are throwing out wild conjectures about how to fix his code. But how can you fix code if you don’t even understand its behavior?
That’s behaviorally no different than his code. The string passed into IsInGroup is implicitly converted to an integer and
if condition then
-- do nothing
else
do_something()
end
is functionally no different than:
if not condition then
do_something()
end
So basically you all are throwing out ideas on how to fix this bug. But you haven’t even reproduced the bug, so it may or may not exist.
My guess is that the Guest is really an exploiter, and he is somehow kicking everyone if he himself gets kicked as a deterrent/punishment to the other players.
Good point…
If partental controls logs me off at 2:00 (10 minutes from now), ill have to do it tomorrow. If it does not, ill do it now. Issue is the Daylight savings time is at 2:00