Advertisement
foxywolf233

Fling Yourself!

Dec 18th, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local UICorner = Instance.new("UICorner")
  10. local TextButton = Instance.new("TextButton")
  11. local UICorner_2 = Instance.new("UICorner")
  12. local UICorner_3 = Instance.new("UICorner")
  13.  
  14. --Properties:
  15.  
  16. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18.  
  19. Frame.Parent = ScreenGui
  20. Frame.BackgroundColor3 = Color3.fromRGB(88, 88, 88)
  21. Frame.Position = UDim2.new(0.72256726, 0, 0.110484786, 0)
  22. Frame.Size = UDim2.new(0, 194, 0, 184)
  23.  
  24. TextLabel.Parent = Frame
  25. TextLabel.BackgroundColor3 = Color3.fromRGB(120, 120, 120)
  26. TextLabel.Size = UDim2.new(0, 194, 0, 50)
  27. TextLabel.Font = Enum.Font.SourceSans
  28. TextLabel.Text = "Fling Yourself!"
  29. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. TextLabel.TextScaled = true
  31. TextLabel.TextSize = 48.000
  32. TextLabel.TextWrapped = true
  33.  
  34. UICorner.Parent = TextLabel
  35.  
  36. TextButton.Parent = Frame
  37. TextButton.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  38. TextButton.Position = UDim2.new(0.201030925, 0, 0.385869563, 0)
  39. TextButton.Size = UDim2.new(0, 115, 0, 84)
  40. TextButton.Font = Enum.Font.SourceSans
  41. TextButton.Text = "Fling!"
  42. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. TextButton.TextSize = 57.000
  44. TextButton.TextWrapped = true
  45.  
  46. UICorner_2.Parent = TextButton
  47.  
  48. UICorner_3.Parent = Frame
  49.  
  50. -- Scripts:
  51.  
  52. local function WYDX_fake_script() -- TextButton.LocalScript
  53. local script = Instance.new('LocalScript', TextButton)
  54.  
  55. script.Parent.MouseButton1Click:Connect(function()
  56. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(556, 529, -3916)
  57. wait(.1)
  58. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1230, 363, -4281)
  59. wait(.1)
  60. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1651, 973, -4613)
  61. wait(.1)
  62. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-3350, 646, -112733)
  63. wait(.1)
  64. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-3350, 646, -11273)
  65. wait(.1)
  66. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-56199, 1406, -121389)
  67. wait(.1)
  68. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1091660, -759, 1951072)
  69. wait(.1)
  70. end)
  71. end
  72. coroutine.wrap(WYDX_fake_script)()
  73. local function ICEMIGP_fake_script() -- Frame.Make GUI Draggable
  74. local script = Instance.new('LocalScript', Frame)
  75.  
  76. local UserInputService = game:GetService("UserInputService")
  77.  
  78. local gui = script.Parent
  79.  
  80. local dragging
  81. local dragInput
  82. local dragStart
  83. local startPos
  84.  
  85. local function update(input)
  86. local delta = input.Position - dragStart
  87. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  88. end
  89.  
  90. gui.InputBegan:Connect(function(input)
  91. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  92. dragging = true
  93. dragStart = input.Position
  94. startPos = gui.Position
  95.  
  96. input.Changed:Connect(function()
  97. if input.UserInputState == Enum.UserInputState.End then
  98. dragging = false
  99. end
  100. end)
  101. end
  102. end)
  103.  
  104. gui.InputChanged:Connect(function(input)
  105. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  106. dragInput = input
  107. end
  108. end)
  109.  
  110. UserInputService.InputChanged:Connect(function(input)
  111. if input == dragInput and dragging then
  112. update(input)
  113. end
  114. end)
  115. end
  116. coroutine.wrap(ICEMIGP_fake_script)()
  117.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement