This script doesn't change the value of the money.
local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait() local leaderboard = player:WaitForChild("Leaderboard") local money = leaderboard.Money local value = script.Parent value.Text = money.Value money:GetPropertyChangedSignal("Value"):Connect(function() value.Text = money.Value end) local hum = game.ReplicatedStorage("Drooling Zombie"):WaitForChild("Humanoid") hum.Died:Connect(function() game.ServerStorage.givemoney:Fire(15,money.Value) end)
This line here is a problem.
local Leaderboard = player:WaitForChild("Leaderboard")
Leaderboard should be leaderstats. I'll have the line thats mostly correct if your folder name is leaderstats, but this is a way to add the folder.
Instance.New("Folder")
The Folder name will change if there is something naming it. Now, to the fixed error.
local Leaderboard = player:WaitForChild("leaderstats")
Possibly a scripting error or name switching.