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)

1 comment
The error is on line 13.