local args = { [1] = game:GetService("Players").LocalPlayer.Data.Prestige, }
game:GetService("ReplicatedStorage").Events.RaiseStat:FireServer
local args = { [1] = game:GetService("Players").LocalPlayer.Data.Prestige, }
game:GetService("ReplicatedStorage").Events.RaiseStat:FireServer
you should do something like this:
--Create the stat
leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = game.Players.LocalPlayer
Prestige = Instance.new("IntValue")
Prestige.Parent = leaderstats
Prestige.Name = "Prestige"
Prestige.Value = 0 --any value that you want it to start with
--Add to it
Prestige.Value = Prestige.Value + 20 --amount that you want to add
hope this helped!
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
That script doesn't raise the stat,
that is just a complicated way of doing nothing