--[[
ANDREI HUB | OPEN SOURCE
Features:
• Fly Speed = 5
• Walk Speed = 50
• Jump Power = 50
• Infinite Jump
• Noclip
• No Key | Safe & Transparent
]]
local Services = {
Players = game:GetService("Players"),
UIS = game:GetService("UserInputService"),
Run = game:GetService("RunService")
}
local Player = Services.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid", 10)
local RootPart = Character:WaitForChild("HumanoidRootPart", 10)
-- Settings
local Config = {
FlySpeed = 5,
WalkSpeed = 50,
JumpPower = 50,
Fly = false,
Noclip = false,
InfJump = false
}
-- Set base stats
Humanoid.WalkSpeed = Config.WalkSpeed
Humanoid.JumpPower = Config.JumpPower
-- Fly Variables
local Gyro, Velocity
local Keys = {W=false,A=false,S=false,D=false,Space=false,Shift=false}
-- Toggle Fly
local function ToggleFly()
Config.Fly = not Config.Fly
if Config.Fly then
Gyro = Instance.new("BodyGyro", RootPart)
Gyro.P = 9e9; Gyro.MaxTorque = Vector3.new(9e9,9e9,9e9)
Velocity = Instance.new("BodyVelocity", RootPart)
Velocity.MaxForce = Vector3.new(9e9,9e9,9e9)
else
if Gyro then Gyro:Destroy() end
if Velocity then Velocity:Destroy() end
end
end
-- Main Loop
Services.Run.RenderStepped:Connect(function()
-- Fly Movement
if Config.Fly and Gyro and Velocity then
local Cam = workspace.CurrentCamera
local Dir = Vector3.new()
if Keys.W then Dir += Cam.CFrame.LookVector end
if Keys.S then Dir -= Cam.CFrame.LookVector end
if Keys.A then Dir -= Cam.CFrame.RightVector end
if Keys.D then Dir += Cam.CFrame.RightVector end
if Keys.Space then Dir += Vector3.new(0,1,0) end
if Keys.Shift then Dir -= Vector3.new(0,1,0) end
Gyro.CFrame = Cam.CFrame
Velocity.Velocity = Dir.Unit * Config.FlySpeed * 15
end
-- Noclip
if Config.Noclip then
for _,p in ipairs(Character:GetDescendants()) do
if p:IsA("BasePart") then p.CanCollide = false end
end
end
end)
-- Infinite Jump
Services.UIS.JumpRequest:Connect(function()
if Config.InfJump and Humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
-- Keybinds
Services.UIS.InputBegan:Connect(function(i,g)
if g then return end
Keys[i.KeyCode.Name] = true
if i.KeyCode == Enum.KeyCode.F then ToggleFly() end
if i.KeyCode == Enum.KeyCode.I then Config.InfJump = not Config.InfJump end
if i.KeyCode == Enum.KeyCode.N then Config.Noclip = not Config.Noclip end
end)
Services.UIS.InputEnded:Connect(function(i) Keys[i.KeyCode.Name] = false end)
print("✅ ANDREI HUB LOADED | OPEN SOURCE")
print("🎮 F=Fly | I=InfJump | N=Noclip")
Comments
No comments yet
Be the first to share your thoughts!