local plr = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
local log = script.Parent
local health = 10
local db = false
log.Touched:connect(function(touched)
if touched.Name == "Blade" then
health = health - 1
plr.leaderstats.Value = plr.leaderstats.Coins.Value + 1
if health == 0 then
log.Position = Vector3.new(log.Position) + Vector3.new(-52.751, 50.888, -54.404)
print("Tree Has Been Cut Down")
wait(5)
log.Position = Vector3.new(log.Position) + Vector3.new(-47.558, 78.031, -98.16)
health = health + 10
else
local i = 100
i = i + 0
end
end
end)
the error is "attempt to index nil with leaderstats"

2 comments
Could you tell us where the script is located? The tool? Handle? What?
the tree. anyways i like ya cut g