Isn't Firing Remote event when there is no reason for a nil vlaue

So basically I was trying to fire code I wrote, I have my remote event where the path is and everything

Here is the client side:


local EF = RS:FindFirstChild('RE')
local BEY = EF:WaitForChild('Bey', 3)

UIS.InputBegan:Connect(function(inp, gpe) 
if inp.UserInputType == Enum.UserInputType.Keyboard and inp.KeyCode == Enum.KeyCode.Q and not Busy and not gpe then
Busy = true
BEY:FireServer('Bey', 'Launch')
end
end)```

I'm not understanding whats going on at all

Hey, this could be the case, because you used and not “”, try this script:

local EF = RS:FindFirstChild("RE")
local BEY = EF:WaitForChild("Bey", 3)

UIS.InputBegan:Connect(function(inp, gpe) 
if inp.UserInputType == Enum.UserInputType.Keyboard and inp.KeyCode == Enum.KeyCode.Q and not Busy and not gpe then
Busy = true
BEY:FireServer("Bey", "Launch")
end
end)

Let me know if it worked!

Where did you create the busy variable? If this is the whole script, the nil might be that the Busy does not exist.

Using one apostrophe is the same as using two, there is no difference as they are both strings.

I know, but there are some keyboards that does have a weird that Roblox doesn’t detect.

In that case the editor would have complained about unexpected characters, and the code block wouldn’t highlight it.

What exactly is the problem? What does the server side code look like?

Note that the .OnServerEvent event passes in the player that fired the remoteevent as the first argument.

(“”) and (‘’) doesn’t matter actually. Server sided code is done correctly as well. but I’ll show it.

local RS = game:GetService'ReplicatedStorage';
local SS = game:GetService'ServerStorage';


local EF = RS:FindFirstChild('RE')
local BEY = EF:FindFirstChild'Bey'

local BeySettings = require(script:FindFirstChild'BeySettings')


BEY.OnServerEvent:Connect(function(Player, Key, Arg)
	if Key == 'Bey' and Arg == 'Launch' then
		BeySettings('Pre-Launch')
	end
end)

shouldn’t be a problem with the code in here honestly.

So this is the error, there shouldn’t be a nil value because the remote event is where it belongs.
[18:25:27.067 - ReplicatedFirst.LocalScript:6: attempt to index nil with ‘FindFirstChild’]

here is the client

local Player = game:GetService'Players'.LocalPlayer
local UIS = game:GetService('UserInputService')
local RS = game:GetService('ReplicatedStorage')

local EF = RS:FindFirstChild('RE')
local BEY = EF:FindFirstChild('Bey', 3)
local Busy = false

if Busy then return end
UIS.InputBegan:Connect(function(inp, gpe) 
if inp.UserInputType == Enum.UserInputType.Keyboard and inp.KeyCode == Enum.KeyCode.Q and not Busy and not gpe then
Busy = true
BEY:FireServer('Bey', 'Launch')
end
end)

Ok so basically it wont let me index replicated storage at all. I just made a direct path to it and it’s saying nil when its obviously there

EDIT: https://gyazo.com/30a926ac5c06c642c7cc40c852368dff