Server script not detecting remote event

  1. What do you want to achieve? Keep it simple and clear!
    I’m trying to make a prototype quest system.

  2. What is the issue? Include screenshots / videos if possible!
    The server script is not detecting the remote event for the system.
    image

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve looked over the dev forum but nothing has worked, I’ve tried moving the script to different places, putting the remote event in a folder and out of a folder, moving the prompt to a different area.

local remote = game.ReplicatedStorage.Quest1

wait(5)
if remote == true then
	print("true")
else
	print("false")
end

game.Workspace.quest1.UpperTorso.activate.TriggerEnded:Connect(function(player)
	print(player.Parent)
	remote:FireClient(player)
	print("fired")
end)

whenever I have issues like this I always try to print the variable itself and wait for an error to be thrown

local remote = game.ReplicatedStorage:WaitForChild("Quest1")
	print(remote)

If the instance itself is thrown, then there’s nothing wrong with it

You are checking if an Instance is equal to true, a boolean. For detecting a remote, you could replace your if/else block with this:

if remote then
	print("true")
else
	print("false")
end

thanks this helped a lot, because then i could find and fix the problem.

1 Like

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