You can write your topic however you want, but you need to answer these questions:
I have a remote event being fired from the client and then to server, then back to the client, and while the client is firing the event succesfully with the server receiving, however whenever the server fires the event back, the client doesnt seem to recieve
Client:
local button = script.Parent
local event = game.ReplicatedStorage.RemoteEvents.DebugNextEntitySpawnEvent
while task.wait(0.5) do
if script.Parent.Parent.Visible == true then
print("clientfired")
event:FireServer()
end
end
event.OnClientEvent:Connect(function(number)
print("clientrecieved")
button.Text = "Next Spawn: "..number
end)
Server:
DebugNextEntitySpawnEvent.OnServerEvent:Connect(function(player)
if table.find(adminTable, player.Name) then
print("serverrecieved")
print("serverfired".. player.Name)
DebugNextEntitySpawnEvent:FireClient(player, entityNextSpawn)
end
end)
Any solutions?