zxcscripts

Title

Aug 24th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. -- Joystick Fly GUI for Delta Executor (Mobile Ready)
  2. -- By ChatGPT ๐Ÿ˜Ž
  3.  
  4. if game:GetService("CoreGui"):FindFirstChild("FlyGui") then
  5. game:GetService("CoreGui").FlyGui:Destroy()
  6. end
  7.  
  8. local Players = game:GetService("Players")
  9. local RunService = game:GetService("RunService")
  10. local player = Players.LocalPlayer
  11. local character = player.Character or player.CharacterAdded:Wait()
  12. local root = character:WaitForChild("HumanoidRootPart")
  13.  
  14. local flying = false
  15. local speed = 50
  16. local direction = Vector3.zero
  17.  
  18. -- UI
  19. local gui = Instance.new("ScreenGui")
  20. gui.Name = "FlyGui"
  21. gui.Parent = game:GetService("CoreGui")
  22.  
  23. -- Helper function for making buttons
  24. local function makeButton(name, pos, text)
  25. local btn = Instance.new("TextButton")
  26. btn.Size = UDim2.new(0, 60, 0, 60)
  27. btn.Position = pos
  28. btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  29. btn.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. btn.Font = Enum.Font.SourceSansBold
  31. btn.TextSize = 20
  32. btn.Text = text
  33. btn.Name = name
  34. btn.Parent = gui
  35. return btn
  36. end
  37.  
  38. -- Fly toggle + speed button
  39. local toggle = makeButton("Toggle", UDim2.new(0.05, 0, 0.8, 0), "Fly: OFF")
  40. toggle.Size = UDim2.new(0, 120, 0, 50)
  41.  
  42. local speedBtn = makeButton("Speed", UDim2.new(0.05, 0, 0.7, 0), "Speed: "..speed)
  43. speedBtn.Size = UDim2.new(0, 200, 0, 50)
  44.  
  45. -- Joystick buttons
  46. local forward = makeButton("Forward", UDim2.new(0.8, 0, 0.6, 0), "โ†‘")
  47. local back = makeButton("Back", UDim2.new(0.8, 0, 0.75, 0), "โ†“")
  48. local left = makeButton("Left", UDim2.new(0.73, 0, 0.675, 0), "โ†")
  49. local right = makeButton("Right", UDim2.new(0.87, 0, 0.675, 0), "โ†’")
  50. local up = makeButton("Up", UDim2.new(0.93, 0, 0.6, 0), "โค’")
  51. local down = makeButton("Down", UDim2.new(0.93, 0, 0.75, 0), "โค“")
  52.  
  53. -- Toggle fly
  54. toggle.MouseButton1Click:Connect(function()
  55. flying = not flying
  56. toggle.Text = flying and "Fly: ON" or "Fly: OFF"
  57. end)
  58.  
  59. -- Speed adjuster
  60. speedBtn.MouseButton1Click:Connect(function()
  61. speed = speed + 25
  62. if speed > 200 then
  63. speed = 25
  64. end
  65. speedBtn.Text = "Speed: " .. speed
  66. end)
  67.  
  68. -- Direction controls
  69. forward.MouseButton1Down:Connect(function() direction = Vector3.new(0,0,-1) end)
  70. forward.MouseButton1Up:Connect(function() direction = Vector3.zero end)
  71.  
  72. back.MouseButton1Down:Connect(function() direction = Vector3.new(0,0,1) end)
  73. back.MouseButton1Up:Connect(function() direction = Vector3.zero end)
  74.  
  75. left.MouseButton1Down:Connect(function() direction = Vector3.new(-1,0,0) end)
  76. left.MouseButton1Up:Connect(function() direction = Vector3.zero end)
  77.  
  78. right.MouseButton1Down:Connect(function() direction = Vector3.new(1,0,0) end)
  79. right.MouseButton1Up:Connect(function() direction = Vector3.zero end)
  80.  
  81. up.MouseButton1Down:Connect(function() direction = Vector3.new(0,1,0) end)
  82. up.MouseButton1Up:Connect(function() direction = Vector3.zero end)
  83.  
  84. down.MouseButton1Down:Connect(function() direction = Vector3.new(0,-1,0) end)
  85. down.MouseButton1Up:Connect(function() direction = Vector3.zero end)
  86.  
  87. -- Fly loop
  88. RunService.RenderStepped:Connect(function()
  89. if flying and character and root then
  90. root.Velocity = direction * speed
  91. end
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment