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

how I can create stats to my dragon ball game?

Asked by 7 years ago
Edited 7 years ago

I don t know how to create stats (agility attack and ki) to my dragon ball game plz help me

1 answer

Log in to vote
0
Answered by
Nikkulaos 229 Moderation Voter
7 years ago
local stats = Instance.new("StringValue",game.Players.LocalPlayer) 
stats.Name = "PlayerStats" 
local stat1 = Instance.new("NumberValue",stats) 
stat1.Name = "Agility" 
stat1.Value = 0
local stat2 = Instance.new("NumberValue",stats) 
stat2.Name = "Attack" 
stat2.Value = 0
local stat3 = Instance.new("NumberValue",stats) 
stat3.Name = "Ki" 
stat3.Value = 0

made in 30 seconds lol

Ad

Answer this question