I’ve been trying to create a rifle weapon, and one of the features is that the UpperTorso points towards the mouse. This works fine when I first spawn into the game(in studio), but when I respawn, the ‘Waist’ motor6d responsible for the movement is not detected by UpperTorso:WaitForChild(“Waist”)
In the output, I get “Infinite yield possible on 'lightningstrike30451.UpperTorso:WaitForChild(“Waist”),” however when I look in the explorer the waist is actually in the UpperTorso.
script:
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character
local UpperTorso = Character:WaitForChild("UpperTorso")
local Waist = UpperTorso:WaitForChild("Waist")
Any help would be appreciated
