--The Error says "Expected end. (too close then at line 5) Did you forget to close then at line 9"?
local Humanoid = script.Parent.Humanoid script.Parent.Humanoid.Died:Connect(function(died) local tag = Humanoid:FindFirstChild("creator") if tag ~= nil then if tag.value ~= nil then local leaderstats = tag.Value:FindFirstChild ("leaderstats")
if leaderstats ~= nil then leaderstats.Currency.Value = leaderstats.Currency.Value +30 script:remove() end script.Parent.Humanoid.Died:Connect(died)
Your first if
statement is missing an end, try adding one at line 14. These errors aren't useless by the way, listening to them might get you somewhere. Also, please format your code correctly.
Hope this helped.