this is in a normal script
local part = Instance.new("Part") part.Parent = workspace part.Touched:Connect(function(hit) if hit:FindFirstChild("Humanoid") then part:Destroy() hit:FindFirstChild("leaderstats").Stars.Value = hit:FindFirstChild("leaderstats").Stars.Value+1 end)
it destroys globally..
To make changes locally simply put that code into a local script