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

Assigning a value to a player who just joined isnt working?


game.Players.PlayerAdded:Connect(function(player)
	    if player.Data.Stand.Value == 1 then
		local random = math.random(2,31)
		player.Data.Stand.Value = random
	end
end)

    

i seriously think im making a really simple mistake but im not sure what itis

3 comments

0

whats the output

0

data is not a proper member of player but when i go in game you can see the data folder in the player

0

Are you sure it's not in the character?

1 answer

Do player:WaitForChild("Data"):FindFirstChild("Stand").Value

I think that should work.

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