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

Gaining strenght isnt working. Is my script correct?

Doing strenght game. Script is below.

1 comment

0

Alvinbloxx codes

1 answer

local replicatedStorage = game:GetService("ReplicatedStorage")

local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData")

local cooldown = 1

replicatedStorage.Remotes.Lift.OnServerEvent:Connect(function(player)

print("Fired")

if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end

local debounce = remoteData[player.Name].Debounce

if not debounce.Value then

print("Got past the Debounce if statement")

debounce.Value = true

player.leaderstats.Strength.Value = player.leaderstats.Strength.Value + 25 * (player.leaderstats.Rebirths.Value + 1)

wait(cooldown)

debounce.Value = false

end

end)

2 comments

0

what's the error?

0

I already told you to do (player.leaderstats.Strength.Value + 25) * (player.leaderstats.Rebirths.Value + 1).

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