Infinite yield looking for ChatScript

local Chat = require(Player.PlayerScripts:WaitForChild("ChatScript").ChatMain)

gives the error:

please help i would appreciate it

1 Like

It means it’s taking too long on the “WaitForChild()” method. It’s possible that ChatScript is not there when you are searching for it.

ah, lemme try something real quick then

so, i tried adding

repeat 
	wait() 
	print("still waiting")
until Player.PlayerScripts:FindFirstChild("ChatScript")

but it keeps printing still waiting (aka that it hasnt been found yet)

apparently i was using the new chat service so it wasnt even using the gui that i thought it was so i changed back to the old one and now it works thank you @LittleGuyForHire for helping : )

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.