All I want is for when a player is added, and a value inside of them is 0, I want it to pick a random number between 1 and 2 to assign to it, but I cant get it to work.
local Player = game.Players.LocalPlayer
local Players = game:GetService("Players")
local RandomSkill = math.random(1,2)
function onPlayerAdded(player)
if Player.Levelss.RandomMove.Value == 0 then
Player.Levelss.RandomMove.Value = Player.Levelss.RandomMove.Value + RandomSkill
end
end
Players.PlayerAdded:connect(onPlayerAdded)

1 comment
FYI: i looked at the output, and it gave me nothing