Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local GuiService = game:GetService("GuiService")
local StarterGui = game:GetService("StarterGui")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
pcall(function()
StarterGui:SetCore("SendNotification", {
Title = "Air Dive Button Script";
Text = ;
Duration = ;
Button1 = ;
})
)
()
touchGui = playerGui:(, )
touchGui
touchControlFrame = touchGui:(, )
touchControlFrame
jumpButton = touchControlFrame:()
jumpButton
jumpButton = ()
jumpButton
()
diveButton = jumpButton:()
diveButton.Name =
diveButton.Parent = jumpButton.Parent
diveButton.Rotation =
diveButton.Position = .(
jumpButton.Position.X.Scale, jumpButton.Position.X.Offset,
jumpButton.Position.Y.Scale, jumpButton.Position.Y.Offset - jumpButton.Size.Y.Offset -
)
()
character = player.Character
character character:()
root = character.HumanoidRootPart
rayOrigin = root.Position
rayDirection = .(, -, )
raycastParams = RaycastParams.()
raycastParams.FilterDescendantsInstances = {character}
raycastParams.FilterType = .RaycastFilterType.Blacklist
result = :(rayOrigin, rayDirection, raycastParams)
result
distance = (rayOrigin - result.Position).Magnitude
distance >
()
character = player.Character
character
humanoidRootPart = character:()
humanoidRootPart ()
humanoidRootPart.Velocity = .(, -, )
diveButton.MouseButton1Down:(dive)
UPDATE: Script is open source. This is my air dive button. What it does is when you click it, it flings you downwards, mimicking diving into the air. This is inspired from Flood Escape 2's air dive feature when you jump and click the "Slide" button mid air, it makes you air dive. Yeah.

Universal