Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way to make this script have no ties?

Asked by 10 years ago

So, this script is supposed to move a players swordscript, in the linkedsword tool, and it does just that. The problem is there's still ties. Can someone help me out with a solution?

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)

0
My English is bad but I'm sure I can help if you define tie or what you mean by it in your sentence. Kozero 120 — 10y

2 answers

Log in to vote
0
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(plr)
 plr.CharacterAdded:connect(function(char)
  repeat wait() until char.Humanoid
  char.Humanoid.Died:connect(function(OMG)
   plr:LoadCharacter(true)
  end)
 end)
end)
--[Copyright @ToTo129]--

Force respawn ties rarely occur. :3 Homemade by ToTo129

Ad
Log in to vote
0
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:conncet(function(char)
repeat wait() until char.Humanoid
char.Humanoid.Died:connect(function(OMG)
pr.LoadCharacter(true)
      end)
   end)
end)

Hope this helped.

Answer this question