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)
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)