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

Infinite yield possible on HumanoidRootPart?

Asked by 2 years ago
Edited 2 years ago

So It works, the block and parry and more but when you died 1 time the sword will not work anymore. It says Infinite yield possible on HumanoidRootPart after dying 1 time. pls help me how to fix this

here the code:

001local sword = script.Parent
002local attackRemote = script:WaitForChild("Attack")
003local blockRemote = script:WaitForChild("Block")
004local player = game.Players.LocalPlayer
005local char = player.Character or player.CharacterAdded:Wait()
006 
007local hum = char:WaitForChild("Humanoid")
008 
009local HumRP = char:WaitForChild ("HumanoidRootPart")
010 
011local anims = script:WaitForChild("Anims")
012local equippedIdle = hum:LoadAnimation(anims:FindFirstChild("IdleEquipped"))
013 
014local RS = game:GetService("ReplicatedStorage")
015local UIS = game:GetService("UserInputService")
View all 219 lines...
0
ive only post the local iiExocitie 0 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago
01local sword = script.Parent
02local attackRemote = script:WaitForChild("Attack")
03local blockRemote = script:WaitForChild("Block")
04local player = game.Players.LocalPlayer
05local char = player.Character
06 
07local hum = char:WaitForChild("Humanoid")
08 
09local HumRP = char:WaitForChild ("HumanoidRootPart")
10 
11local anims = script:WaitForChild("Anims") local equippedIdle = hum:LoadAnimation(anims:FindFirstChild("IdleEquipped"))
12 
13local RS = game:GetService("ReplicatedStorage") local UIS = game:GetService("UserInputService") local TS = game:GetService("TweenService")
14 
15local Modules = RS:WaitForChild("Modules") local Remotes = RS:WaitForChild("Remotes")
View all 51 lines...

Try out this code.

0
thank you for trying but it doesnt work now everything is broken and the error doesnt show up in the developer console.. iiExocitie 0 — 2y
Ad

Answer this question