I have this script in a player's Gui. When I test it in a localserver (Studio) the remoteevent shows in the player. But when I test it in an online server, it says that the remoteevent isn't there.
local Blue = Instance.new("RemoteEvent")
Blue.Name = "Blue"
Blue.Parent = script.Parent.Parent.Parent
Blue.OnServerEvent:connect(function()
local c = game.Workspace.CurrentCamera
c.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
c.CameraType = "Custom"
c.FieldOfView = 70
if script:findFirstChild("SkipCutsceneGuiValue") then
if script.SkipCutsceneGuiValue.Value ~= nil then
script.SkipCutsceneGuiValue.Value:Destroy()
end
end
wait(0.1)
script.Parent.Parent.Parent.TeamColor = BrickColor.new("Deep blue")
end)

1 comment
You should keep all RemoteEvents and RemoteFunctions inside ReplicatedStorage.