Hey, When i run this code it gives this errror: Infinite yield possible on 'ReplicatedStorage:WaitForChild("Remote")'. Does anyone know what this is?
wait(2)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remote = ReplicatedStorage:WaitForChild("Remote")
local function RemoteSmall()
GetWood = false
WC = plr.PlayerGui.WoodChopper
WC.BG.Visible = true
char.Humanoid.WalkSpeed = 0
char.Humanoid.JumpPower = 0
animation:Play()
ShowProgress('SmallTree1')
animation:Stop()
char.Humanoid.WalkSpeed = 16
char.Humanoid.JumpPower = 50
end
Remote.OnClientEvent:Connect(RemoteSmall)

9 comments
Hey, I cant get it to work... could you maybe explain it a bit more?
WaitForChild() takes two arguments. The first one is the instance, the second is the timeout. Basically it's just warning you that there is no timeout, so it could be waiting for the instance forever.
What do i need to add so it can find it? Is it a remote event? Im trying understand this page: https://developer.roblox.com/api-reference/function/RemoteEvent/FireClient
Don't worry about it, just make sure that there is a remote
But is doesnt work :(
add a RemoteEvent in ReplicatedStorage and name it "Remote"
Thanks, the warning is gone! The thing still does not work...
If you need help with making it work, you should probably make another question
Not a good idea to make another question, as that's spam and is against the rules... Think next time.