scripercory1

speed and fly script

Apr 11th, 2021
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.07 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. wait(1)
  5. local Fly = Instance.new("ScreenGui")
  6. local Left = Instance.new("TextButton")
  7. local Right = Instance.new("TextButton")
  8. local Down = Instance.new("TextButton")
  9. local Up = Instance.new("TextButton")
  10. local CustomizeFR = Instance.new("Frame")
  11. local ColorB = Instance.new("TextButton")
  12. local MaterialB = Instance.new("TextButton")
  13. local VisibleB = Instance.new("TextButton")
  14. local Text = Instance.new("TextButton")
  15. local Red = Instance.new("TextBox")
  16. local Blue = Instance.new("TextBox")
  17. local Green = Instance.new("TextBox")
  18. local Material = Instance.new("TextBox")
  19. local RateTXT = Instance.new("TextBox")
  20. local Rate = Instance.new("TextButton")
  21. local Customize = Instance.new("TextButton")
  22. local Character = game.Players.LocalPlayer.Character
  23. local Amount = Instance.new("TextBox")
  24. local mouse = game.Players.LocalPlayer:GetMouse()
  25. local Number = 1
  26. --Properties:
  27. Fly.Name = "Fly"
  28. Fly.Parent = game.Players.LocalPlayer.PlayerGui
  29. Fly.ResetOnSpawn = false
  30.  
  31. local Part = Instance.new("Part")
  32. Part.Anchored = true
  33. Part.Parent = game.Workspace
  34. Part.Name = "FlyPart"
  35. Part.Size = Vector3.new(25,1,25)
  36. Part.Color = Color3.new(0,0,0)
  37. Part.Material = "Glass"
  38. Part.Transparency = 0.6
  39.  
  40. Left.Name = "Left"
  41. Left.Parent = Fly
  42. Left.BackgroundColor3 = Color3.new(0, 0, 0)
  43. Left.BorderColor3 = Color3.new(1, 0, 0)
  44. Left.BorderSizePixel = 2
  45. Left.Position = UDim2.new(0.351834148, 0, 0.805691063, 0)
  46. Left.Size = UDim2.new(0.0647528023, 0, 0.0971544683, 0)
  47. Left.Font = Enum.Font.GothamBlack
  48. Left.Text = "W"
  49. Left.TextColor3 = Color3.new(0.921569, 0, 0)
  50. Left.TextScaled = true
  51. Left.TextSize = 14
  52. Left.TextStrokeTransparency = 0
  53. Left.TextWrapped = true
  54.  
  55. Right.Name = "Right"
  56. Right.Parent = Fly
  57. Right.BackgroundColor3 = Color3.new(0, 0, 0)
  58. Right.BorderColor3 = Color3.new(1, 0, 0)
  59. Right.BorderSizePixel = 2
  60. Right.Position = UDim2.new(0.488197803, 0, 0.805691063, 0)
  61. Right.Size = UDim2.new(0.0647528023, 0, 0.0971544683, 0)
  62. Right.Font = Enum.Font.GothamBlack
  63. Right.Text = "S"
  64. Right.TextColor3 = Color3.new(0.921569, 0, 0)
  65. Right.TextScaled = true
  66. Right.TextSize = 14
  67. Right.TextStrokeTransparency = 0
  68. Right.TextWrapped = true
  69.  
  70. Down.Name = "Down"
  71. Down.Parent = Fly
  72. Down.BackgroundColor3 = Color3.new(0, 0, 0)
  73. Down.BorderColor3 = Color3.new(1, 0, 0)
  74. Down.BorderSizePixel = 2
  75. Down.Position = UDim2.new(0.423604488, 0, 0.862601638, 0)
  76. Down.Rotation = 90
  77. Down.Size = UDim2.new(0.0647528023, 0, 0.0971544683, 0)
  78. Down.Font = Enum.Font.GothamBlack
  79. Down.Text = ">"
  80. Down.TextColor3 = Color3.new(0.921569, 0, 0)
  81. Down.TextScaled = true
  82. Down.TextSize = 14
  83. Down.TextStrokeTransparency = 0
  84. Down.TextWrapped = true
  85.  
  86. Up.Name = "Up"
  87. Up.Parent = Fly
  88. Up.BackgroundColor3 = Color3.new(0, 0, 0)
  89. Up.BorderColor3 = Color3.new(1, 0, 0)
  90. Up.BorderSizePixel = 2
  91. Up.Position = UDim2.new(0.423604488, 0, 0.709756136, 0)
  92. Up.Rotation = 90
  93. Up.Size = UDim2.new(0.0647528023, 0, 0.0971544683, 0)
  94. Up.Font = Enum.Font.GothamBlack
  95. Up.Text = "<"
  96. Up.TextColor3 = Color3.new(0.921569, 0, 0)
  97. Up.TextScaled = true
  98. Up.TextSize = 14
  99. Up.TextStrokeTransparency = 0
  100. Up.TextWrapped = true
  101.  
  102. CustomizeFR.Name = "CustomizeFR"
  103. CustomizeFR.Parent = Fly
  104. CustomizeFR.BackgroundColor3 = Color3.new(1, 1, 1)
  105. CustomizeFR.Position = UDim2.new(0.688197792, 0, 0.609756052, 0)
  106. CustomizeFR.Size = UDim2.new(0.299999982, 0, 0.369105697, 0)
  107. CustomizeFR.Style = Enum.FrameStyle.DropShadow
  108. CustomizeFR.Visible = false
  109.  
  110. ColorB.Name = "ColorB"
  111. ColorB.Parent = CustomizeFR
  112. ColorB.BackgroundColor3 = Color3.new(0, 0, 0)
  113. ColorB.BorderColor3 = Color3.new(0.14902, 1, 0)
  114. ColorB.BorderSizePixel = 2
  115. ColorB.Position = UDim2.new(0.046145469, 0, 0.321109593, 0)
  116. ColorB.Size = UDim2.new(0.362466902, 0, 0.172044262, 0)
  117. ColorB.Font = Enum.Font.GothamBlack
  118. ColorB.Text = "Color"
  119. ColorB.TextColor3 = Color3.new(0.0745098, 0.921569, 0.270588)
  120. ColorB.TextScaled = true
  121. ColorB.TextSize = 14
  122. ColorB.TextStrokeTransparency = 0
  123. ColorB.TextWrapped = true
  124.  
  125. MaterialB.Name = "MaterialB"
  126. MaterialB.Parent = CustomizeFR
  127. MaterialB.BackgroundColor3 = Color3.new(0, 0, 0)
  128. MaterialB.BorderColor3 = Color3.new(0.921569, 0.72549, 0.443137)
  129. MaterialB.BorderSizePixel = 2
  130. MaterialB.Position = UDim2.new(0.046145469, 0, 0.536968589, 0)
  131. MaterialB.Size = UDim2.new(0.362466902, 0, 0.172044262, 0)
  132. MaterialB.Font = Enum.Font.GothamBlack
  133. MaterialB.Text = "Material"
  134. MaterialB.TextColor3 = Color3.new(0.921569, 0.72549, 0.443137)
  135. MaterialB.TextScaled = true
  136. MaterialB.TextSize = 14
  137. MaterialB.TextStrokeTransparency = 0
  138. MaterialB.TextWrapped = true
  139.  
  140. VisibleB.Name = "VisibleB"
  141. VisibleB.Parent = CustomizeFR
  142. VisibleB.BackgroundColor3 = Color3.new(0, 0, 0)
  143. VisibleB.BorderColor3 = Color3.new(0.631373, 0.921569, 0.678431)
  144. VisibleB.BorderSizePixel = 2
  145. VisibleB.Position = UDim2.new(0.046145469, 0, 0.779259384, 0)
  146. VisibleB.Size = UDim2.new(0.362466902, 0, 0.172044262, 0)
  147. VisibleB.Font = Enum.Font.GothamBlack
  148. VisibleB.Text = "Visible"
  149. VisibleB.TextColor3 = Color3.new(0.666667, 0.921569, 0.85098)
  150. VisibleB.TextScaled = true
  151. VisibleB.TextSize = 14
  152. VisibleB.TextStrokeTransparency = 0
  153. VisibleB.TextWrapped = true
  154.  
  155. Text.Name = "Text"
  156. Text.Parent = CustomizeFR
  157. Text.BackgroundColor3 = Color3.new(0, 0, 0)
  158. Text.BackgroundTransparency = 1
  159. Text.BorderColor3 = Color3.new(0.631373, 0.921569, 0.678431)
  160. Text.BorderSizePixel = 2
  161. Text.Position = UDim2.new(0.0886760429, 0, 0.0611976944, 0)
  162. Text.Size = UDim2.new(0.811695933, 0, 0.172044262, 0)
  163. Text.Font = Enum.Font.GothamBlack
  164. Text.Text = "Part Customizer"
  165. Text.TextColor3 = Color3.new(0, 0.137255, 0.921569)
  166. Text.TextScaled = true
  167. Text.TextSize = 14
  168. Text.TextStrokeTransparency = 0
  169. Text.TextWrapped = true
  170.  
  171. Red.Name = "Red"
  172. Red.Parent = CustomizeFR
  173. Red.BackgroundColor3 = Color3.new(1, 1, 1)
  174. Red.BackgroundTransparency = 1
  175. Red.Position = UDim2.new(0.443912864, 0, 0.317180604, 0)
  176. Red.Size = UDim2.new(0.152576745, 0, 0.172000006, 0)
  177. Red.Font = Enum.Font.GothamBlack
  178. Red.LineHeight = 3
  179. Red.PlaceholderColor3 = Color3.new(1, 0, 0)
  180. Red.PlaceholderText = "Red"
  181. Red.Text = ""
  182. Red.TextColor3 = Color3.new(1, 0, 0)
  183. Red.TextScaled = true
  184. Red.TextSize = 14
  185. Red.TextStrokeTransparency = 0
  186. Red.TextWrapped = true
  187.  
  188. Blue.Name = "Blue"
  189. Blue.Parent = CustomizeFR
  190. Blue.BackgroundColor3 = Color3.new(1, 1, 1)
  191. Blue.BackgroundTransparency = 1
  192. Blue.Position = UDim2.new(0.81339699, 0, 0.317180604, 0)
  193. Blue.Size = UDim2.new(0.16852577, 0, 0.172000006, 0)
  194. Blue.Font = Enum.Font.GothamBlack
  195. Blue.LineHeight = 3
  196. Blue.PlaceholderColor3 = Color3.new(0.0313726, 0, 1)
  197. Blue.PlaceholderText = "Blue"
  198. Blue.Text = ""
  199. Blue.TextColor3 = Color3.new(0, 0.0470588, 1)
  200. Blue.TextScaled = true
  201. Blue.TextSize = 14
  202. Blue.TextStrokeTransparency = 0
  203. Blue.TextWrapped = true
  204.  
  205. Green.Name = "Green"
  206. Green.Parent = CustomizeFR
  207. Green.BackgroundColor3 = Color3.new(1, 1, 1)
  208. Green.BackgroundTransparency = 1
  209. Green.Position = UDim2.new(0.622009635, 0, 0.317180604, 0)
  210. Green.Size = UDim2.new(0.152576745, 0, 0.172000006, 0)
  211. Green.Font = Enum.Font.GothamBlack
  212. Green.LineHeight = 3
  213. Green.PlaceholderColor3 = Color3.new(0, 1, 0.364706)
  214. Green.PlaceholderText = "Green"
  215. Green.Text = ""
  216. Green.TextColor3 = Color3.new(0, 1, 0.282353)
  217. Green.TextScaled = true
  218. Green.TextSize = 14
  219. Green.TextStrokeTransparency = 0
  220. Green.TextWrapped = true
  221.  
  222. Amount.Parent = Fly
  223. Amount.Name = "Amount"
  224. Amount.BackgroundColor3 = Color3.new(0, 0, 0)
  225. Amount.BackgroundTransparency = 0
  226. Amount.Position = UDim2.new(0.1, 0, 0.9, 0)
  227. Amount.Size = UDim2.new(0.2, 0, 0.05, 0)
  228. Amount.Font = Enum.Font.GothamBlack
  229. Amount.LineHeight = 3
  230. Amount.PlaceholderColor3 = Color3.new(1, 0, 0)
  231. Amount.PlaceholderText = "How much pos"
  232. Amount.Text = "5"
  233. Amount.TextColor3 = Color3.new(1, 0, 0)
  234. Amount.TextScaled = true
  235. Amount.TextSize = 14
  236. Amount.TextStrokeTransparency = 0
  237. Amount.TextWrapped = true
  238.  
  239. Material.Name = "Material"
  240. Material.Parent = CustomizeFR
  241. Material.BackgroundColor3 = Color3.new(1, 1, 1)
  242. Material.BackgroundTransparency = 1
  243. Material.Position = UDim2.new(0.526315629, 0, 0.533039629, 0)
  244. Material.Size = UDim2.new(0.373204082, 0, 0.172000006, 0)
  245. Material.Font = Enum.Font.GothamBlack
  246. Material.LineHeight = 3
  247. Material.PlaceholderColor3 = Color3.new(1, 0.698039, 0.494118)
  248. Material.PlaceholderText = "Material"
  249. Material.Text = ""
  250. Material.TextColor3 = Color3.new(1, 0.698039, 0.494118)
  251. Material.TextScaled = true
  252. Material.TextSize = 14
  253. Material.TextStrokeTransparency = 0
  254. Material.TextWrapped = true
  255.  
  256. RateTXT.Name = "RateTXT"
  257. RateTXT.Parent = CustomizeFR
  258. RateTXT.BackgroundColor3 = Color3.new(1, 1, 1)
  259. RateTXT.BackgroundTransparency = 1
  260. RateTXT.Position = UDim2.new(0.526315629, 0, 0.779735804, 0)
  261. RateTXT.Size = UDim2.new(0.20574002, 0, 0.172000006, 0)
  262. RateTXT.Font = Enum.Font.GothamBlack
  263. RateTXT.LineHeight = 3
  264. RateTXT.PlaceholderColor3 = Color3.new(0.768628, 1, 0.988235)
  265. RateTXT.PlaceholderText = "Rate"
  266. RateTXT.Text = ""
  267. RateTXT.TextColor3 = Color3.new(0.811765, 1, 1)
  268. RateTXT.TextScaled = true
  269. RateTXT.TextSize = 14
  270. RateTXT.TextStrokeTransparency = 0
  271. RateTXT.TextWrapped = true
  272.  
  273. Rate.Name = "Rate"
  274. Rate.Parent = CustomizeFR
  275. Rate.BackgroundColor3 = Color3.new(0, 0, 0)
  276. Rate.BorderColor3 = Color3.new(0.631373, 0.921569, 0.678431)
  277. Rate.BorderSizePixel = 2
  278. Rate.Position = UDim2.new(0.731950939, 0, 0.779259384, 0)
  279. Rate.Size = UDim2.new(0.109941535, 0, 0.172044262, 0)
  280. Rate.Font = Enum.Font.GothamBlack
  281. Rate.Text = "%"
  282. Rate.TextColor3 = Color3.new(0.666667, 0.921569, 0.85098)
  283. Rate.TextScaled = true
  284. Rate.TextSize = 14
  285. Rate.TextStrokeTransparency = 0
  286. Rate.TextWrapped = true
  287.  
  288. Customize.Name = "Customize"
  289. Customize.Parent = Fly
  290. Customize.BackgroundColor3 = Color3.new(0, 0, 0)
  291. Customize.BorderColor3 = Color3.new(1, 0, 0)
  292. Customize.BorderSizePixel = 2
  293. Customize.Position = UDim2.new(0.0105263293, 0, 0.882113814, 0)
  294. Customize.Size = UDim2.new(0.0448165983, 0, 0.0971544683, 0)
  295. Customize.Font = Enum.Font.GothamBlack
  296. Customize.Text = "C"
  297. Customize.TextColor3 = Color3.new(0.921569, 0, 0)
  298. Customize.TextScaled = true
  299. Customize.TextSize = 14
  300. Customize.TextStrokeTransparency = 0
  301. Customize.TextWrapped = true
  302. Up.MouseButton1Click:Connect(function()
  303. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.upVector*Amount.Text*10
  304.  
  305. end)
  306. Down.MouseButton1Click:Connect(function()
  307. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.Velocity - Character.HumanoidRootPart.CFrame.upVector*Amount.Text*10
  308. Part.CanCollide = false
  309. wait(.1)
  310. Part.CanCollide = true
  311.  
  312. end)
  313. Left.MouseButton1Click:Connect(function()
  314. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector*Amount.Text*10
  315. end)
  316. Right.MouseButton1Click:Connect(function()
  317. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.Velocity - Character.HumanoidRootPart.CFrame.lookVector*Amount.Text*10
  318. end)
  319. VisibleB.MouseButton1Click:Connect(function()
  320. Part.Transparency = 1-RateTXT.Text/100
  321. Left.BackgroundTransparency = Part.Transparency
  322. Right.BackgroundTransparency = Part.Transparency
  323. Up.BackgroundTransparency = Part.Transparency
  324. Down.BackgroundTransparency = Part.Transparency
  325. end)
  326. MaterialB.MouseButton1Click:Connect(function()
  327. Part.Material = Material.Text
  328. end)
  329. ColorB.MouseButton1Click:Connect(function()
  330. Part.Color = Color3.new(Red.Text/255,Green.Text/255,Blue.Text/255)
  331. Left.BorderColor3 = Part.Color
  332. Left.TextColor3 = Part.Color
  333. Right.BorderColor3 = Part.Color
  334. Right.TextColor3 = Part.Color
  335. Up.BorderColor3 = Part.Color
  336. Up.TextColor3 = Part.Color
  337. Down.BorderColor3 = Part.Color
  338. Down.TextColor3 = Part.Color
  339. end)
  340.  
  341. Customize.MouseButton1Click:Connect(function()
  342. if CustomizeFR.Visible == false then
  343. CustomizeFR.Visible = true
  344. Customize.TextColor3 = Color3.new(0,1,0)
  345. Customize.BorderColor3 = Color3.new(0,1,0)
  346. elseif CustomizeFR.Visible == true then
  347. CustomizeFR.Visible = false
  348. Customize.TextColor3 = Color3.new(1,0,0)
  349. Customize.BorderColor3 = Color3.new(1,0,0)
  350. end
  351. end)
  352.  
  353. mouse.KeyDown:connect(function (key) -- Run function
  354. key = string.lower(key)
  355. if string.byte(key) == 119 then
  356. running = true
  357. local keyConnection = mouse.KeyUp:connect(function (key)
  358. if string.byte(key) == 119 then
  359. running = false
  360. end
  361. end)
  362. for i = 1,5 do
  363. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  364. wait()
  365. end
  366. local Old3 = Left.BorderColor3
  367. repeat wait ()
  368. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector*Amount.Text*10
  369. Left.BorderColor3 = Color3.new(1,1,1)
  370. until running == false
  371. Left.BorderColor3 = Old3
  372. keyConnection:disconnect()
  373. for i = 1,5 do
  374. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  375. wait()
  376. end
  377. end
  378. end)
  379. mouse.KeyDown:connect(function (key) -- Run function
  380. key = string.lower(key)
  381. if string.byte(key) == 115 then
  382. running4 = true
  383. local keyConnection = mouse.KeyUp:connect(function (key)
  384. if string.byte(key) == 115 then
  385. running4 = false
  386. end
  387. end)
  388. local Old4 = Right.BorderColor3
  389. repeat wait ()
  390. Right.BorderColor3 = Color3.new(1,1,1)
  391. until running4 == false
  392. Right.BorderColor3 = Old4
  393. keyConnection:disconnect()
  394. end
  395. end)
  396. mouse.KeyDown:connect(function (key) -- Run function
  397. key = string.lower(key)
  398. if string.byte(key) == 32 then
  399. jumping = true
  400. local keyConnection = mouse.KeyUp:connect(function (key)
  401. if string.byte(key) == 32 then
  402. jumping = false
  403. end
  404. end)
  405.  
  406. local Old2 = Up.BorderColor3
  407. repeat wait ()
  408. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.upVector*Amount.Text*10
  409. Up.BorderColor3 = Color3.new(1,1,1)
  410. until jumping == false
  411. Up.BorderColor3 = Old2
  412. keyConnection:disconnect()
  413. end
  414. end)
  415. mouse.KeyDown:connect(function (key) -- Run function
  416. key = string.lower(key)
  417. if string.byte(key) == 48 then
  418. jumping2 = true
  419. local keyConnection = mouse.KeyUp:connect(function (key)
  420. if string.byte(key) == 48 then
  421. jumping2 = false
  422. end
  423. end)
  424.  
  425. local Old = Down.BorderColor3
  426.  
  427. repeat wait ()
  428. Down.BorderColor3 = Color3.new(1,1,1)
  429. Character.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame-Vector3.new(0,Amount.Text/3.5,0)
  430. Part.CanCollide = false
  431. until jumping2 == false
  432. Part.CanCollide = true
  433. Down.BorderColor3 = Old
  434. keyConnection:disconnect()
  435. end
  436. end)
  437. function onKeyPress(actionName, userInputState, inputObject)
  438. if userInputState == Enum.UserInputState.Begin then
  439. Part.Color = Color3.new(math.random(),math.random(),math.random())
  440. Left.BorderColor3 = Part.Color
  441. Left.TextColor3 = Part.Color
  442. Right.BorderColor3 = Part.Color
  443. Right.TextColor3 = Part.Color
  444. Up.BorderColor3 = Part.Color
  445. Up.TextColor3 = Part.Color
  446. Down.BorderColor3 = Part.Color
  447. Down.TextColor3 = Part.Color
  448. end
  449. end
  450.  
  451. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.C)
  452. function onKeyPress(actionName, userInputState, inputObject)
  453. if userInputState == Enum.UserInputState.Begin then
  454. Number = Number +1
  455. if Number == 1 then
  456. Part.Material = "Plastic"
  457. elseif Number == 2 then
  458. Part.Material = "Ice"
  459. elseif Number == 3 then
  460. Part.Material = "Glass"
  461. elseif Number == 4 then
  462. Part.Material = "Cobblestone"
  463. elseif Number == 5 then
  464. Part.Material = "Slate"
  465. elseif Number == 6 then
  466. Part.Material = "Grass"
  467. elseif Number == 7 then
  468. Part.Material = "Metal"
  469. elseif Number == 8 then
  470. Part.Material = "Granite"
  471. elseif Number == 9 then
  472. Part.Material = "Sand"
  473. elseif Number == 10 then
  474. Part.Material = "Wood"
  475. elseif Number == 11 then
  476. Part.Material = "DiamondPlate"
  477. Number = 0
  478. end
  479. end
  480. end
  481.  
  482. game.ContextActionService:BindAction("keyPress2", onKeyPress, false, Enum.KeyCode.M)
  483.  
  484. function onKeyPress(actionName, userInputState, inputObject)
  485. if userInputState == Enum.UserInputState.Begin then
  486. local Tr = math.random(0,100)
  487. Part.Transparency = Tr/100
  488. Left.BackgroundTransparency = Part.Transparency
  489. Right.BackgroundTransparency = Part.Transparency
  490. Up.BackgroundTransparency = Part.Transparency
  491. Down.BackgroundTransparency = Part.Transparency
  492. end
  493. end
  494.  
  495. game.ContextActionService:BindAction("keyPress3", onKeyPress, false, Enum.KeyCode.T)
  496. -- Scripts:
  497. while true do
  498. if Character:FindFirstChild("HumanoidRootPart") == nil then
  499. else
  500. Part.CFrame = CFrame.new(Character.HumanoidRootPart.Position.X,Character.HumanoidRootPart.Position.Y-3.5,Character.HumanoidRootPart.Position.Z)
  501. end
  502. wait()
  503. end
Advertisement
Add Comment
Please, Sign In to add comment