My bug says ServerScriptService.Remotes:10: attempt to perform arithmetic (add) on Instance and number - Server - Remotes:10
And here is my code Stats: The problem is in remotes line 10
player.leaderstats.Strength.Value = player.leaderstats.Strength + 15 * player.leaderstats.Rebirths.Value + 1
local ServerStorage = game:GetService("ServerStorage") game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local strength = Instance.new("NumberValue") strength.Name = "Strength" strength.Parent = leaderstats local rebirths = Instance.new("IntValue") rebirths.Name = "Rebirths" rebirths.Parent = leaderstats local dataFolder = Instance.new("Folder") dataFolder.Name = player.Name dataFolder.Parent = ServerStorage.remoteData local debounce = Instance.new("BoolValue") debounce.Name = "Debounce" debounce.Parent = dataFolder print("Stats work") end) Remotes: 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 print("got past") player.leaderstats.Strength.Value = player.leaderstats.Strength + 15 * player.leaderstats.Rebirths.Value + 1 wait(cooldown) Debounce.Value = false print("I did it!") end end)
I found the problem, it needs to be player.leaderstats.Strength.Value = player.leaderstats.Strength.Value + 15 * player.leaderstats.Rebirths.Value + 1