the output keeps on saying.. Infinite yield possible on 'ReplicatedStorage:WaitForChild("RightHand")'__ here is the script
local rp = game.ReplicatedStorage local RightHand = rp:WaitForChild("RightHand") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:connect(function(character) -- i need to add to this line end) end)
i dont know what im doing wrong even though the players right hand has spawned
You should use FindFirstChild instead.
Generally, the infinite yield warning just means that there is a chance that the :WaitForChild is going to wait forever. This might be because the wait has been running for longer than 5 seconds.
local rp = game:GetService(“ReplicatedStorage”) local RightHand = rp:FindFirstChild("RightHand") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) -- i need to add to this line end) end)