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
Problem Here! '=' if not debounce.Value then
print("Got past the debounce if statement")
debounce.Value = true
player.leaderstats.Strength.Value = player.leaderstats.Strength + 5 * (player.leaderstats.Rebirths.Value + 1)
wait(cooldown)
debounce.Value = false
end
end)
Local values must equal something
local debounce remoteData[player.Name].Debounce
it should be something like this
local debounce = remoteData[player.Name].Debounce