Doing strenght game. Script is below.
Gaining strenght isnt working. Is my script correct?
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
what's the error?
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.

1 comment
Alvinbloxx codes