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

How can I raise the player stats value by more than just 1 at a time, ex: raise stat by 20 ect?

local args = { [1] = game:GetService("Players").LocalPlayer.Data.Prestige, }

game:GetService("ReplicatedStorage").Events.RaiseStat:FireServer

2 comments

0

That script doesn't raise the stat,

0

that is just a complicated way of doing nothing

1 answer

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.