Remote Event Not Firing!

I’m trying to fire the remote event “stop”, but it’s not firing. The other remote event works just fine “start”.

Does anyone know what’s going on?

Server:

local minitime = game.ReplicatedStorage.minitime.Value
startre = game.ReplicatedStorage.Start
stopre = game.ReplicatedStorage.Stop






local function start()
	
local mgame = games[math.random(#games)]
	
local gameclone = mgame:Clone()
	
	gameclone.Parent = workspace
	gameclone.Name = "game"
	
	print(mgame)
	
	minitime = gameclone.Time
	
	task.wait(.5)
	for _, plr in pairs(game.Players:GetChildren()) do
	plr.Character.HumanoidRootPart.CFrame = workspace["tp part"].CFrame

	end
	
	local function stop()
		gameclone:Destroy()
		for _, plr in pairs(game.Players:GetChildren()) do
			plr.Character.HumanoidRootPart.CFrame = workspace.gover.CFrame
			print("santa!")
		end
		stopre.OnServerEvent:Connect(stop)
	end
end


startre.OnServerEvent:Connect(start)

Local:

start = game.ReplicatedStorage.Start
stop = game.ReplicatedStorage.Stop
while true do 
	for i = 15, 0, -1 do 
		script.Parent.towel.Text = `Intermission: {i}`
		task.wait(1)
	end
	start:FireServer()
	
	for i = (minitime), 0, -1 do 
		script.Parent.towel.Text = `{i}`
		task.wait(1)
		stop:FireServer()
	end

	
end

Put a print statement inside the for loop and see if it ever executed

It printed when I put it in the loop, but not when it’s put in server.

Any error messages in the output window?

I see the problem…

You need to move this outside the function…
stopre.OnServerEvent:Connect(stop)

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