i was making a weight lifting simulator and i was onto the rebirth and i put in this amd there is too much errors i need help with it and it would be nice if some one would help me script the whole game :)
local replicatedStorage = game:GetService("ReplicatedStorage") local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData")
local cooldown = 1
replicatedStorage.Remotes.Lift.OnServerEvent:Connect(function(player)
if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end
local debounce = remoteData[player.Name].Debounce
if not debounce.Value then
debounce.Value = true
player.leaderstats.Strength.Value = player.leaderstats.Strength.Value + 25 + (player.leaderstats.Rebirths.Value + 1)
wait(cooldown)
debounce.Value = false
else
end
end)
replicatedStorage.Remotes.Rebirth.OnServerInvoke = function(player)
if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end
local rebirths = player.leaderstats.Rebirths
end

5 comments
please help me
bruh i want to die i spent all day doing it and it does not work
Please properly format your code and provide all errors, preferably in blockquotes.
replicatedStorage.Remotes.Rebirth.OnServerInvoke = function(player) if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end local rebirths = player.leaderstats.Rebirths end
replicatedStorage.Remotes.Rebirth.OnServerInvoke = function(player) if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end local rebirths = player.leaderstats.Rebirths end