while true do local O=game.Players:GetChildren()for m=1,#O,1 do if O[m].Character~=nil then if O[m].Character:findFirstChild("\084\111\114\115\111")~=nil then if(O[m].Character.Torso.Position-script.Parent.Torso.Position).magnitude<5 then local O=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")O.Value=possibleAnims[math.random(1,#possibleAnims)]O.Name="\116\111\111\108\097\110\105\109"O.Parent=script.Parent.Sword end end end end wait(3)end
------------------
------------------

while true do
	local p = game.Players:GetChildren()
	for i = 1, #p do
		if p[i].Character ~= nil then
			if p[i].Character:findFirstChild("Torso") ~= nil then
				if (p[i].Character.Torso.Position - script.Parent.Torso.Position).magnitude < 5 then
					local anim = Instance.new("StringValue")
					anim.Value = possibleAnims[math.random(1, #possibleAnims)]
					anim.Name = "toolanim"
					anim.Parent = script.Parent.Sword
				end
			end
		end
	end
	wait(3)
end
