When I try and use the code below with the for loop it teleports the player.
for i,plr in pairs(Players) do if plr.Character.HumanoidRootPart then if plr.Name == PlayerName then print("This is the player!") character = plr.Character if character then -- Teleport Them character:FindFirstChild("HumanoidRootPart").CFrame = PhoneFriendSpawn.CFrame + Vector3.new(0,10,0) local MasterControl = require(plr:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule"):WaitForChild("ControlModule")) MasterControl:Disable()
But it stops on MasterControl and comes out with this output below.
11:50:17.813 - Infinite yield possible on 'Players.sonicfoo3:WaitForChild("PlayerScripts")'
What have I done wrong?