Universal Script 📌
1.9k Views
2.3k Executions

Tweened Fly Tool by AGBest

Universal Script 📌
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Lets you fly in the air using a tool/gear using Tweened movement!

View Raw
local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded
local root = char.HumanoidRootPart
local humanoid = char.Humanoid
local run = game:GetService("RunService")
local cam = workspace.CurrentCamera
local tool = Instance.new("Tool")
local pos
local gyro
local cf
local dir
local direction
local event

tool.Name = "Noclip"
tool.RequiresHandle = false
tool.Parent = plr.Backpack
 
local speed = 1
 
tool.Equipped:Connect(function()
    pos = Instance.new("BodyPosition")
    gyro = Instance.new("BodyGyro")
    pos.Position = root.Position
    pos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
    pos.P = 100000
    pos.D = 1750
    pos.Parent = root
    gyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
    gyro.P = 100000
    gyro.D = 2200
    gyro.Parent = root
    humanoid.PlatformStand = true
    event = run.Heartbeat:Connect(function()
        cf = cam.CFrame.Rotation
        dir = cf:VectorToObjectSpace(humanoid.MoveDirection * speed)
        if dir.Magnitude == 0 then
            direction = Vector3.new(0,0,0)
        else
            direction = cf:VectorToWorldSpace(Vector3.new(dir.X, 0, dir.Z).Unit * dir.Magnitude)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
48.5k
46.5k
Bumped 2 hours ago
Universal Script 📌
1.4k
1.3k
Bumped 5 hours ago
Universal Script 📌
4.2k
56.4k
Bumped 6 hours ago
Universal Script 📌
7.1k
71.4k
Bumped 7 hours ago
Script hub
3.5M
1.2M
Bumped 8 hours ago
Key System
Universal Script 📌
5.0k
92.0k
Bumped 13 hours ago