I’ve tried making new jet systems. I’ve tried editing the original one that was problematic with five different “fixes,” none of which changed anything.
I have the most bizarre glitch I have ever experienced in my game, as it only affects other clients in the game; in the server itself, there were no glitches.
Basically in this glitch, if a player is flying a plane, controlled by this very simple local script:
local seat = script:WaitForChild("this")
local connection = seat.Value
local USINS=game:getService("UserInputService")
local player=game.Players.LocalPlayer
local speed = 150
local maxspeed = 300
local minspeed = 0
local Mouse = player:GetMouse()
local fly = connection.Parent:WaitForChild("fly")
local gyro = connection.Parent.Engine.BodyGyro
local velo = connection.Parent.Engine.BodyVelocity
if connection.Parent ~= nil then
while fly.Value == true do
game["Run Service"].RenderStepped:wait(.1)
if velo.MaxForce == Vector3.new(math.huge,math.huge,math.huge) and not USINS:GetFocusedTextBox() then
Mouse.TargetFilter = game.Workspace
local BankAngle = GetBankAngle(Mouse)
gyro.cframe = (Mouse.Hit*CFrame.Angles(0,0,BankAngle))
velo.velocity = (connection.Parent.Engine.CFrame.lookVector)*speed
end
end
end
and gets shot down, to all other clients, this is what will appear on their screen:
As you can see, the pilot of the plane is frozen in mid-air; the pilot’s plane continues to fly around.
However, on the pilot’s client, this is his or her view:
And from their view, their character is still alive and inside said jet:
Seems like a simple client-server glitch, right? It gets even weirder…
This is what appears when I looked at the issue from the server in ROBLOX studio:
The pilot in the server is still alive and with his or her plane! This is only an issue for other clients in the game.
I have been struggling with this issue for many months now, and it has been very frustrating to fix. Does anyone know what is happening that is causing this? I have even tried to have the jet’s control system be controlled by server-sided remotes, and this issue only continues to happen.