Shift-Lock fly glitch

So @VegetationBush gave me footage of him doing this glitch and then “flying”, or should I say, “falling with style.”

Here it is:

Is there any way to fix this?

4 Likes

Is this your game? If so it may be a problem with your game. If its not it should be in engine bugs.

Let me know if it is i can recommend some troubleshooting tactics.

2 Likes

@VegetationBush sent me a message saying it might be a problem with my sprint script, so here it is:

local UserInputService = game:GetService("UserInputService")
local default = 28
local sprint = 60

local sprinting = false

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()

--[[UserInputService.InputBegan:Connect(function(input, gpe)
	if input.KeyCode == Enum.KeyCode.LeftControl and sprinting == false then
		char.Humanoid.WalkSpeed = sprint
		sprinting = true
	elseif input.KeyCode == Enum.KeyCode.LeftControl and sprinting == true then
		char.Humanoid.WalkSpeed = default
		sprinting = false
	end
end)]]
-- mobile
local contextActionService = game:GetService("ContextActionService")

local function mobileSprint()
	if sprinting == false then
		char.Humanoid.WalkSpeed = sprint
		contextActionService:SetTitle("Sprint", "Walk")
		wait(1)
		sprinting = true
	elseif sprinting == true then
		char.Humanoid.WalkSpeed = default
		contextActionService:SetTitle("Sprint", "Sprint")
		wait(1)
		sprinting = false
	end
end

local button = contextActionService:BindAction("Sprint", mobileSprint, true, Enum.KeyCode.LeftControl, Enum.KeyCode.LeftShift)
contextActionService:SetTitle("Sprint", "Sprint")
2 Likes

Thanks for that. Do you know how the glitch works exactly? If we know how the glitch specifically works, It’ll help with working backwards to fix it.

Is he just zooming in and out while in shift lock mode in that video? Or doing something else as well?

2 Likes

By the looks of it. I could ask @VegetationBush to come here so we know more.

It looks like it could just be a glitch with the Roblox engine.

Take a look at this, and go down to the “Wall Glitching” subtitle: Glitch | Roblox Wiki | Fandom

If you don’t want this to happen in your game, the safest route is probably to disable it for the game entirely - or to lock the players’ camera zoom distance on something.