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)
I am sure that it isn't an error but a warning RBLX:WaitForChild() yields the thread(the script) until it finds the Remote, it warns you because "Remote" might not ever exist and thus the code below it might never execute/run. Try creating the remote above it or add it manually in studio.