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

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

Asked by 3 years ago

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

0
whats the output raid6n 2196 — 3y
0
data is not a proper member of player but when i go in game you can see the data folder in the player MateeTheGod 0 — 3y
0
Are you sure it's not in the character? Bery_llium 115 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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

I think that should work.

Ad

Answer this question