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

Player.Neutral not working? [SOLVED]

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.

2 comments

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?

0

No errors at all.

1 answer

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.

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