This script is broken, and it's supposed to remove the script when a player dies, but the error is > Unexpected symbol near '='
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local var = 0 repeat wait(0.01) local ifs = char.Humanoid --Edited Part if ifs=0 then plr.Backpack.LinkedSword.SwordScript:Destroy() until var==10 end) end)
Missing 'end' and '==' on line 13.
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local var = 0 repeat wait() -- 2/30th of a frame. local ifs = char.Humanoid if ifs == 0 then plr.Backpack.LinkedSword.SwordScript:Destroy() end until var == 10 end) end)
I think you are trying to compare it, on line 13, am I correct? If so then you would use ==
instead of =
.
Hope I helped.