Uh... i can't really know what should i say more than "Hey, this script is broken, it works perfectly on studio but not on the online game."
The script that i'm talking about is:
Door = script.Parent
ClickDetector = script.Parent.ClickDetector
despacito = true
Footsteps = script.Parent.Footsteps
game.Players.PlayerAdded:connect(function(Clicker)
Persin = Clicker.PlayerGui:WaitForChild("BlackScreen")
Frame = Persin:WaitForChild("Frame")
Char = Clicker.Character
Root = Char:WaitForChild("HumanoidRootPart")
ClickDetector.MouseClick:connect(function(Clicker)
if despacito == true then
despacito = false
Frame.Transparency = 0.9
wait(0.03)
Frame.Transparency = 0.7
wait(0.03)
Frame.Transparency = 0.5
Footsteps:Play()
wait(0.03)
Frame.Transparency = 0.3
wait(0.03)
Frame.Transparency = 0.1
wait(0.03)
Frame.Transparency = 0
Root.CFrame = CFrame.new(Vector3.new(-137.187, 3.87, -62.108))
wait(1)
Frame.Transparency = 0.1
wait(0.03)
Frame.Transparency = 0.3
wait(0.03)
Footsteps:Stop()
Frame.Transparency = 0.5
wait(0.03)
Frame.Transparency = 0.7
wait(0.03)
Frame.Transparency = 0.9
wait(0.03)
Frame.Transparency = 1
despacito = true
end
end)
end)
The problem apparently comes from being a "infinite field" on waitforchild("BlackScreen")
Even tough I made this script, meaning I have a basic grasp on scripting, but I don't understand what a "infinite field" means, maybe if you guys tell me what it is, I can fix it.
If you wonder what "blackscreen" is, it's just a GUI to make the screen fade to black.

5 comments
Can you paste the exact error code?
"Infinite yeld possible on 'Players.Chris75764.Playergui:WaitForChild("Blackscreen")
"Infinite yeld possible on 'Players.Chris75764.Playergui:WaitForChild("Blackscreen"), Stack begin, Script.Workspace.The Door.DoorTP, Line 7, Stack end.
That's a warning, not an error.
Also the server should NOT be modifying PlayerGui.