I am having issues whenever I test my game. It gives me an infinite yield error, but everything is a valid member of replicated storage. The scripts were working yesterday and I didn’t change anything.
if waitforchild waits 5 seconds it will give you the infinite yield warning
if your 100% sure that the part your waiting for will be there then you can do
-- this will wait forever for the TeamSwitchedHGK with no warnings
ReplicatedStorage:WaitForChild("TeamSwitchedHGK", math.huge)
https://developer.roblox.com/en-us/api-reference/function/Instance/WaitForChild
yeah i tried that before making this post, it doesn’t give me the error, but the script still doesn’t work
that means it keeps waiting and the TeamSwitchedHGK is never getting placed into ReplicatedStorage
ok i wont use instance.new, ill place the hgk remote event into replicatedstorage