This script only works if the game has player collision enabled!
1


Reviewed by QueueSpeedDemonPaid revieweron How review works
No reports yet. Tried it? Be the first to say.
This allows players to climb onto ur body and fly with you just the right speed so they donβt fall off :)
This script only works if the game has player collision enabled!
-- Educational UI Concept for Reset-Safe State Persistence
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
-- Create a ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "PersistentFlightGui"
-- CRUCIAL: Stops Roblox from deleting this UI when you die
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
-- Main Container Frame
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 250, 0, 200)
MainFrame.Position = UDim2.new(0.4, 0, 0.4, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MainFrame.Active = true
MainFrame.Parent = ScreenGui
-- ==========================================
-- MOBILE FINGER & MOUSE DRAGGING ENGINE
-- ==========================================
local dragging = false
local dragInput, dragStart, startPos
local function update(input)
local delta = input.Position - dragStart
MainFrame.Position = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
end
MainFrame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position








the idea sounds fun i will make sure to give the script a try thanks!