when trying to play game it says rendering is paused for debugging why? here is my cash for kill script
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder",player) leaderstats.Name = "leaderstats"
local Cash = Instance.new("IntValue",leaderstats) Cash.Value = 0 Cash.Name = "Cash" local Kills = Instance.new("IntValue",leaderstats) Kills.Value = 0 Kills.Name = "Kills" player.characteradded:Connect(function(character) character.Humanoid.Died:Connect(function() local Killertag = character.Humanoid:WaitForChild("creator") if Killertag and Killertag.Value then local Stats = Killertag.Value:WaitForChild("leaderstats") Stats["Cash"].Value = Stats ["Cash"].Value + 10 Stats["Kills"].Value = Stats["Kills"].Value + 1 end end) end)
end)
If you press a line along your script there will be a red dot, you don't want it during testing and it will pause. Make sure you don't have any of these dots in your scripts.