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

Is there a value that is different for each player?

I am making a value where each player has their own value and it increases but I have to clone the script so the player value will have a different value each time

VALUE2332 = 1
if print("gh")
Vallue2332 = Value2332 + 1
clone script
remove script

I want to make it so that i insert a value and whenever someone does something that value increases by 1 but I want each value to be different for each value is there a type of value I can insert into the game that is unique for each player. I did the code for cloning and removing scripts wrong. Please help!!!!!!

5 comments

0

you can do this by generating a random number using math.random() than add a leaderstats folder to your plr, a value object and tere you go

0

how do i do that

0

jeez this script is seriously messed up

1

You should start with something simple first, turquoise, it seems you're trying to make something you're seriously not ready for yet

0

I have worked everything thank you anyway

1 answer

✓ Accepted answer
local High = 100
local Low = 0

game.Players.PlayerAdded:Connect(function(plr)
   local RandValue = Instance.new("IntValue")
   RandValue.Name = "RandValue"
   RandValue.Value = math.random(Low,High)
   RandValue.Parent = plr
end)

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