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

how to remove the animation from the sword after touching the object?

Asked by 3 years ago

guys help me

script.Parent.Touched:connect(function(hit) local Humanoid = hit.Parent:FindFirstChild("Humanoid") if Humanoid then for i,item in pairs(hit.Parent:GetChildren()) do if item.Name == "Sword" and item:IsA("Tool") then item:Destroy() end end for i,item in pairs(game.Players[hit.Parent.Name].Backpack:GetChildren()) do if item.Name == "Sword" and item:IsA("Tool") then item:Destroy() end end end end) local x = game.Workspace.Baseplate if game.Workspace.Baseplate.Touched then game.Workspace.baseplate.Handle.Parent:Destroy() end

Answer this question