ADVERTISEMENTREMOVE ADS

Simple Fly Script That Works With Every Executor

Universal script
4 months ago
Script preview thumbnail
Script Preview

Description

It's a simple fly script that works with EVERY executor.

It can be buggy on some.

ADVERTISEMENTREMOVE ADS
76 Lines • 2.46 KiB
Raw
-- Flying Script for Roblox with JJSploit
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
-- Configuration
local flySpeed = 50 -- Adjust this value to change the flying speed
local flying = false
-- Function to start flying
local function startFlying()
if not flying then
flying = true
humanoid.PlatformStand = true
end
end
-- Function to stop flying
local function stopFlying()
if flying then
flying = false
humanoid.PlatformStand = false
end
end
-- Function to handle flying movement
local function fly()
if flying then
local moveVector = Vector3.new(0, 0, 0)
-- Check input keys
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.W) then
moveVector = moveVector + rootPart.CFrame.LookVector
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.S) then
moveVector = moveVector - rootPart.CFrame.LookVector
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.A) then
moveVector = moveVector - rootPart.CFrame.RightVector
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.D) then
moveVector = moveVector + rootPart.CFrame.RightVector
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Space) then
moveVector = moveVector + Vector3.new(0, 1, 0)
end
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then
moveVector = moveVector - Vector3.new(0, 1, 0)
end
-- Apply movement
rootPart.Velocity = moveVector * flySpeed
end
end
-- Connect the flying function to the heartbeat event
game:GetService("RunService").Heartbeat:Connect(fly)
-- Handle character addition
player.CharacterAdded:Connect(function(newCharacter)
character = newCharacter
humanoid = character:WaitForChild("Humanoid")
rootPart = character:WaitForChild("HumanoidRootPart")
end)
-- Handle input events
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
if flying then
stopFlying()
else
startFlying()
end
end
end)
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS

Tags