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

Player.Neutral not working? [SOLVED]

Asked by 9 years ago

This is NOT a request.

Basically, my script doesn't set the Player.Neutral property to false. The variable players is already set as game:GetService('Players').

players.PlayerAdded:connect(function(player)

    wait()

    player.Neutral = false

    wait()

    --Other code, none of which would reverse the action

end)

The wait() functions are in there because after it continually didn't work, I tried everything I could think of.

This ONLY happens to the first player that joins a server.

I appreciate any help in advance.

0
The script worked perfectly fine when I tested it. Is there any errors in the output, and does it show any in the script itself? dyler3 1510 — 9y
0
No errors at all. Verbero 0 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

I fixed the problem. Earlier in the script, it was being caught up waiting for a function in a ModuleScript to run, therefore not connecting the player being added to the game. Moved stuff around in my script and it works fine. No wonder it didn't make sense.

Ad

Answer this question