I created a gui that has a text button, and when you click it, the whole game reloads but i got no error on the output but this happened: Infinite yield possible on 'ReplicatedStorage:WaitForChild("RestartGame")'?
I never had a problem like this please help...
Code:
script.Parent.MouseButton1Click:Connect(function() local RestartGame = game:GetService("ReplicatedStorage"):WaitForChild("RestartGame")--When it appears RestartGame:FireServer() end)
This can only mean one thing. RestartGame doesn't exist.