Remote not a valid member of script even tho it is

Hello! For some reason, when I run my Trolling GUI, it says that my “PandoraSwitcherV3Remote” is not a valid member of script even tho it is.

image

image

When I tried removing the PandoraSwitcherV3Remote variable and remote, it just said another thing wasn’t part of the script even tho it was aswell.

What do I do?

Try doing local PandoraSwitcherV3Remote = RemoteHandler:WaitForChild("PandoraSwitcherV3Remote").

I suggest using Container:WaitForChild(RemoteNameHere), as it’s possible that the script is compiled and references the remote before it has a chance to exist in the container.

Already tried it, it didn’t work.

30 Characters

It didn’t work for some reason.

If you show us more of the code, perhaps we can see if there’s a problem with something else. Thanks!

The code is really long so I’ll just remove the things that don’t have to be put in. Here’s the local handler for the gui.


Handler.

--]]



	repeat
		wait()
	until game.Players.LocalPlayer
	
	wait(3)
	
	-- Variables --
	local Player = game:GetService("Players").LocalPlayer
	local InformationFrame = script.Parent.InformationFrame
	local FirstDismissButton = script.Parent.InformationFrame.DismissButton
	local InformationOpen = false
	local Mouse = Player:GetMouse()
	local IsOpened = false
	local LoadFrame = script.Parent.LoadFrame
	local OpenButton = script.Parent.LoadFrame.OpenButton
	local FirstCloseButton = script.Parent.LoadFrame.CloseButton
	local MainFrame = script.Parent.MainFrame
	local GreenLine = script.Parent.MainFrame.GreenLine
	local FirstLabel = script.Parent.MainFrame.Label
	local TweenService = game:GetService("TweenService")
	local Scripthub = script.Parent.MainFrame.Scripthub
	local SecondCloseButton = script.Parent.MainFrame.CloseButton
	local RemoteHandler = game.ReplicatedStorage:WaitForChild("RemoteHandler")
	local R6Remote = RemoteHandler.R6Remote
	local RespawnRemote = RemoteHandler.RespawnRemote
	
	-- Draggable --
	MainFrame.Draggable = true
	MainFrame.Active = true
	MainFrame.Selectable = true
	
	-- Scripts --
	local R6Button = script.Parent.MainFrame.R6Button
	local RespawnButton = script.Parent.MainFrame.REButton
	local PandoraSwitcherV3 = Scripthub["Pandora Switcher V3"]
	
	-- Remotes --
	local PandoraSwitcherV3Remote = RemoteHandler.PandoraSwitcherV3Remote
	
	-- Tweens --
	local MainSlideOut = TweenService:Create(MainFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.376, 0, 0.283, 0)})
	local MainSlideIn = TweenService:Create(MainFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.376, 0, 2, 0)})
	local LoadSlideOut = TweenService:Create(LoadFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.84, 0, 0.834, 0)})
	local LoadSlideIn = TweenService:Create(LoadFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.84, 0, 1.1, 0)})
	local InformationSlideOut = TweenService:Create(InformationFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.84, 0, 0.551, 0)})
	local InformationSlideIn = TweenService:Create(InformationFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(1.1, 0, 0.551, 0)})
	
	-- Loading Slide Out --
	LoadSlideOut:Play()
	
	-- Name Labels --
	FirstLabel.Text = " Welcome back to Elixir Hub, ".. Player.Name .."!"
	
	-- Mouse Functions --
	OpenButton.MouseButton1Click:Connect(function()
		LoadSlideIn:Play()
		wait(1.5)
		MainSlideOut:Play()
		IsOpened = true
	end)
	
	FirstCloseButton.MouseButton1Click:Connect(function()
		LoadSlideIn:Play()
		wait(1.5)
	end)
	 
	SecondCloseButton.MouseButton1Click:Connect(function()
		MainSlideIn:Play()
		wait(2)
		InformationSlideOut:Play()
		IsOpened = false
	end)
	
	FirstDismissButton.MouseButton1Click:Connect(function()
		InformationSlideIn:Play()
	end)
	
	R6Button.MouseButton1Click:Connect(function()
		R6Remote:FireServer()
	end)
	
	RespawnButton.MouseButton1Click:Connect(function()
		RespawnRemote:FireServer()
	end)
	
	PandoraSwitcherV3.MouseButton1Click:Connect(function()
		PandoraSwitcherV3Remote:FireServer()
	end)
	
	-- Open/Close Function --

	Mouse.KeyDown:connect(function(Key)
    if Key == "=" and IsOpened == false then
        	MainSlideOut:Play()
			IsOpened = true
	elseif Key == "=" and IsOpened == true then
			MainSlideIn:Play()
			IsOpened = false
    	end
	end)

Here’s the RemoteHandler of the gui.


Remote Handler.

--]]

script.Parent = game.ReplicatedStorage

-- Variables --
local R6Remote = script.R6Remote
local RespawnRemote = script.RespawnRemote
local PandoraSwitcherV3Remote = script.PandoraSwitcherV3Remote

-- Variable Functions --

R6Remote.OnServerEvent:Connect(function(Player)
	require()
end)

RespawnRemote.OnServerEvent:Connect(function(Player)
	Player:LoadCharacter()
end)

PandoraSwitcherV3Remote.OnServerEvent:Connect(function(Player)
	require()
end)

Okay, if you already tried using :WaitForChild() then what was in the output?

None, I waited for about 25 seconds and nothing happened.

(The gui was supposed to pop out, it didn’t.)

So you didn’t receive Infinite yield possible on 'RemoteHandler:WaitForChild("PandoraSwitcherV3Remote")' in the output?

Oh I did end up getting that, sorry-