local Remotes = ReplicatedStorage:WaitForChild("remotes")
local CombatEvent = Remotes:WaitForChild('CombatEvent')
Infinite yield possible on 'ReplicatedStorage.remotes:WaitForChild(“OnCombat”)
local Remotes = ReplicatedStorage:WaitForChild("remotes")
local CombatEvent = Remotes:WaitForChild('CombatEvent')
Infinite yield possible on 'ReplicatedStorage.remotes:WaitForChild(“OnCombat”)
When you use WaitForChild, you’re waiting until a child object exists. If it doesn’t exist, your code will wait forever, so it will infinitely yield (wait).
WaitForChild automatically sends that warning after five seconds if the object still doesn’t exist, which is your remote event.
Check if whatever you are waiting for is spelt correctly and has the proper capitalisation.