Ok so I am using a Global Script that is inside of a part, that has a click detector
Script:
script.Parent.ClickDetector.MouseClick:connect(function()
script.Parent:FindFirstChild("RemoteEvent"):FireClient()
end)
It is giving me Argument 1 is missing or nil, why? [Part Answered ]
The local script won't work, I got the thing to fire but the following local script won't do a thing any ideas on how to fix it?
Local Script:
enabled = true
game.Workspace.Lantern.Bulb.RemoteEvent.OnClientEvent:connect(function()
if enabled == true then
enabled = false
local StarterGui = game:GetService('StarterGui')
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
end
end)

3 comments
gotta include a player.
Yes. Never forget that.
Works but, the local script won't work, I will edit the question.