ben10keil5

Fat's Simple Speed Gui

Apr 9th, 2022 (edited)
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.81 KB | None | 0 0
  1. -- Fat's Simple Speed Gui
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local SpeedGui2 = Instance.new("ScreenGui")
  7. local Frame = Instance.new("ImageLabel")
  8. local Frame_2 = Instance.new("ImageLabel")
  9. local Fill = Instance.new("ImageLabel")
  10. local TextButton = Instance.new("TextButton")
  11. local TextButton_Roundify_12px = Instance.new("ImageLabel")
  12. local Frame_3 = Instance.new("ImageLabel")
  13. local TextLabel = Instance.new("TextLabel")
  14. local TextLabel_2 = Instance.new("TextLabel")
  15. local TextLabel_Roundify_12px = Instance.new("ImageLabel")
  16. local TextLabel_3 = Instance.new("TextLabel")
  17. local TextLabel_Roundify_12px_2 = Instance.new("ImageLabel")
  18. local TextLabel_4 = Instance.new("TextLabel")
  19. local TextLabel_Roundify_12px_3 = Instance.new("ImageLabel")
  20. local TextLabel_5 = Instance.new("TextLabel")
  21.  
  22. --Properties:
  23.  
  24. SpeedGui2.Name = "Speed Gui #2"
  25. SpeedGui2.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  26.  
  27. Frame.Name = "Frame"
  28. Frame.Parent = SpeedGui2
  29. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. Frame.BackgroundTransparency = 1.000
  31. Frame.Position = UDim2.new(0.10356997, 0, 0.565117657, 0)
  32. Frame.Size = UDim2.new(0, 374, 0, 216)
  33. Frame.Image = "rbxassetid://3570695787"
  34. Frame.ImageColor3 = Color3.fromRGB(74, 72, 75)
  35. Frame.ScaleType = Enum.ScaleType.Slice
  36. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  37. Frame.SliceScale = 0.120
  38.  
  39. Frame_2.Name = "Frame"
  40. Frame_2.Parent = Frame
  41. Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  42. Frame_2.BackgroundTransparency = 1.000
  43. Frame_2.Size = UDim2.new(0, 23, 0, 217)
  44. Frame_2.Image = "rbxassetid://3570695787"
  45. Frame_2.ImageColor3 = Color3.fromRGB(0, 0, 0)
  46. Frame_2.ScaleType = Enum.ScaleType.Slice
  47. Frame_2.SliceCenter = Rect.new(100, 100, 100, 100)
  48. Frame_2.SliceScale = 0.120
  49.  
  50. Fill.Name = "Fill"
  51. Fill.Parent = Frame
  52. Fill.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. Fill.BackgroundTransparency = 1.000
  54. Fill.Position = UDim2.new(0.159544498, 0, 0.816814423, 0)
  55. Fill.Size = UDim2.new(0, 249, 0, 5)
  56. Fill.Image = "rbxassetid://3570695787"
  57. Fill.ImageColor3 = Color3.fromRGB(95, 94, 95)
  58. Fill.ScaleType = Enum.ScaleType.Slice
  59. Fill.SliceCenter = Rect.new(100, 100, 100, 100)
  60. Fill.SliceScale = 0.120
  61.  
  62. TextButton.Parent = Fill
  63. TextButton.AnchorPoint = Vector2.new(0.5, 0.5)
  64. TextButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  65. TextButton.BackgroundTransparency = 1.000
  66. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  67. TextButton.BorderSizePixel = 0
  68. TextButton.Position = UDim2.new(0, 0, 0.5, 0)
  69. TextButton.Size = UDim2.new(0, 9, 0, 42)
  70. TextButton.Font = Enum.Font.SourceSans
  71. TextButton.Text = ""
  72. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  73. TextButton.TextSize = 14.000
  74.  
  75. TextButton_Roundify_12px.Name = "TextButton_Roundify_12px"
  76. TextButton_Roundify_12px.Parent = TextButton
  77. TextButton_Roundify_12px.Active = true
  78. TextButton_Roundify_12px.AnchorPoint = Vector2.new(0.5, 0.5)
  79. TextButton_Roundify_12px.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80. TextButton_Roundify_12px.BackgroundTransparency = 1.000
  81. TextButton_Roundify_12px.Position = UDim2.new(0.166666657, 0, 0.5, 0)
  82. TextButton_Roundify_12px.Selectable = true
  83. TextButton_Roundify_12px.Size = UDim2.new(1, 0, 1, 0)
  84. TextButton_Roundify_12px.Image = "rbxassetid://3570695787"
  85. TextButton_Roundify_12px.ImageColor3 = Color3.fromRGB(0, 0, 0)
  86. TextButton_Roundify_12px.ScaleType = Enum.ScaleType.Slice
  87. TextButton_Roundify_12px.SliceCenter = Rect.new(100, 100, 100, 100)
  88. TextButton_Roundify_12px.SliceScale = 0.120
  89.  
  90. Frame_3.Name = "Frame"
  91. Frame_3.Parent = Frame
  92. Frame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  93. Frame_3.BackgroundTransparency = 1.000
  94. Frame_3.Position = UDim2.new(0.247190997, 0, 0, 0)
  95. Frame_3.Size = UDim2.new(0, 179, 0, 44)
  96. Frame_3.Image = "rbxassetid://3570695787"
  97. Frame_3.ImageColor3 = Color3.fromRGB(0, 0, 0)
  98. Frame_3.ScaleType = Enum.ScaleType.Slice
  99. Frame_3.SliceCenter = Rect.new(100, 100, 100, 100)
  100. Frame_3.SliceScale = 0.120
  101.  
  102. TextLabel.Parent = Frame_3
  103. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  104. TextLabel.BackgroundTransparency = 1.000
  105. TextLabel.Size = UDim2.new(0, 179, 0, 44)
  106. TextLabel.Font = Enum.Font.SourceSansBold
  107. TextLabel.Text = "Speed Gui"
  108. TextLabel.TextColor3 = Color3.fromRGB(254, 252, 255)
  109. TextLabel.TextScaled = true
  110. TextLabel.TextSize = 14.000
  111. TextLabel.TextWrapped = true
  112.  
  113. TextLabel_2.Parent = Frame_3
  114. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  115. TextLabel_2.BackgroundTransparency = 1.000
  116. TextLabel_2.Position = UDim2.new(0.553072631, 0, 4.340909, 0)
  117. TextLabel_2.Size = UDim2.new(0, 169, 0, 25)
  118. TextLabel_2.Font = Enum.Font.SourceSansBold
  119. TextLabel_2.Text = "Made by Fat#3323"
  120. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  121. TextLabel_2.TextScaled = true
  122. TextLabel_2.TextSize = 14.000
  123. TextLabel_2.TextWrapped = true
  124.  
  125. TextLabel_Roundify_12px.Name = "TextLabel_Roundify_12px"
  126. TextLabel_Roundify_12px.Parent = Frame_3
  127. TextLabel_Roundify_12px.AnchorPoint = Vector2.new(0.5, 0.5)
  128. TextLabel_Roundify_12px.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  129. TextLabel_Roundify_12px.BackgroundTransparency = 1.000
  130. TextLabel_Roundify_12px.Position = UDim2.new(-0.188486785, 0, 2.81818199, 0)
  131. TextLabel_Roundify_12px.Size = UDim2.new(0.223463684, 0, 1, 0)
  132. TextLabel_Roundify_12px.Image = "rbxassetid://3570695787"
  133. TextLabel_Roundify_12px.ImageColor3 = Color3.fromRGB(0, 0, 0)
  134. TextLabel_Roundify_12px.ScaleType = Enum.ScaleType.Slice
  135. TextLabel_Roundify_12px.SliceCenter = Rect.new(100, 100, 100, 100)
  136. TextLabel_Roundify_12px.SliceScale = 0.120
  137.  
  138. TextLabel_3.Parent = TextLabel_Roundify_12px
  139. TextLabel_3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  140. TextLabel_3.BackgroundTransparency = 1.000
  141. TextLabel_3.BorderSizePixel = 0
  142. TextLabel_3.Position = UDim2.new(-0.251676172, 0, 0, 0)
  143. TextLabel_3.Size = UDim2.new(0, 59, 0, 43)
  144. TextLabel_3.Font = Enum.Font.SourceSansBold
  145. TextLabel_3.Text = "0"
  146. TextLabel_3.TextColor3 = Color3.fromRGB(254, 252, 255)
  147. TextLabel_3.TextScaled = true
  148. TextLabel_3.TextSize = 14.000
  149. TextLabel_3.TextWrapped = true
  150.  
  151. TextLabel_Roundify_12px_2.Name = "TextLabel_Roundify_12px"
  152. TextLabel_Roundify_12px_2.Parent = Frame_3
  153. TextLabel_Roundify_12px_2.AnchorPoint = Vector2.new(0.5, 0.5)
  154. TextLabel_Roundify_12px_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  155. TextLabel_Roundify_12px_2.BackgroundTransparency = 1.000
  156. TextLabel_Roundify_12px_2.Position = UDim2.new(1.23184359, 0, 2.81818199, 0)
  157. TextLabel_Roundify_12px_2.Size = UDim2.new(0.351955295, 0, 1, 0)
  158. TextLabel_Roundify_12px_2.Image = "rbxassetid://3570695787"
  159. TextLabel_Roundify_12px_2.ImageColor3 = Color3.fromRGB(0, 0, 0)
  160. TextLabel_Roundify_12px_2.ScaleType = Enum.ScaleType.Slice
  161. TextLabel_Roundify_12px_2.SliceCenter = Rect.new(100, 100, 100, 100)
  162. TextLabel_Roundify_12px_2.SliceScale = 0.120
  163.  
  164. TextLabel_4.Parent = TextLabel_Roundify_12px_2
  165. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  166. TextLabel_4.BackgroundTransparency = 1.000
  167. TextLabel_4.BorderSizePixel = 0
  168. TextLabel_4.Position = UDim2.new(0.0629599094, 0, -0.0681817532, 0)
  169. TextLabel_4.Size = UDim2.new(0, 55, 0, 50)
  170. TextLabel_4.Font = Enum.Font.SourceSansBold
  171. TextLabel_4.Text = "100"
  172. TextLabel_4.TextColor3 = Color3.fromRGB(254, 252, 255)
  173. TextLabel_4.TextScaled = true
  174. TextLabel_4.TextSize = 14.000
  175. TextLabel_4.TextWrapped = true
  176.  
  177. TextLabel_Roundify_12px_3.Name = "TextLabel_Roundify_12px"
  178. TextLabel_Roundify_12px_3.Parent = Frame_3
  179. TextLabel_Roundify_12px_3.AnchorPoint = Vector2.new(0.5, 0.5)
  180. TextLabel_Roundify_12px_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  181. TextLabel_Roundify_12px_3.BackgroundTransparency = 1.000
  182. TextLabel_Roundify_12px_3.Position = UDim2.new(0.5, 0, 2.590909, 0)
  183. TextLabel_Roundify_12px_3.Size = UDim2.new(1, 0, 1, 0)
  184. TextLabel_Roundify_12px_3.Image = "rbxassetid://3570695787"
  185. TextLabel_Roundify_12px_3.ImageColor3 = Color3.fromRGB(0, 0, 0)
  186. TextLabel_Roundify_12px_3.ScaleType = Enum.ScaleType.Slice
  187. TextLabel_Roundify_12px_3.SliceCenter = Rect.new(100, 100, 100, 100)
  188. TextLabel_Roundify_12px_3.SliceScale = 0.120
  189.  
  190. TextLabel_5.Parent = TextLabel_Roundify_12px_3
  191. TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  192. TextLabel_5.BackgroundTransparency = 1.000
  193. TextLabel_5.BorderSizePixel = 0
  194. TextLabel_5.Position = UDim2.new(0.0515032709, 0, -0.0744018555, 0)
  195. TextLabel_5.Size = UDim2.new(0, 160, 0, 50)
  196. TextLabel_5.Font = Enum.Font.SourceSansLight
  197. TextLabel_5.Text = "Simple Speed Slider"
  198. TextLabel_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  199. TextLabel_5.TextScaled = true
  200. TextLabel_5.TextSize = 14.000
  201. TextLabel_5.TextStrokeColor3 = Color3.fromRGB(254, 252, 255)
  202. TextLabel_5.TextWrapped = true
  203.  
  204. -- Scripts:
  205.  
  206. local function YTWJ_fake_script() -- Fill.LocalScript
  207. local script = Instance.new('LocalScript', Fill)
  208.  
  209. local UserInputService = game:GetService("UserInputService")
  210. local Dragging = false
  211. script.Parent.TextButton.MouseButton1Down:Connect(function()
  212. Dragging = true
  213. end)
  214.  
  215. UserInputService.InputChanged:Connect(function()
  216. if Dragging then
  217. local MousePos = UserInputService:GetMouseLocation()+Vector2.new(0,36)
  218. local RelPos = MousePos-script.Parent.AbsolutePosition
  219. local Precent = math.clamp(RelPos.X/script.Parent.AbsoluteSize.X,0,1)
  220. script.Parent.TextButton.Position = UDim2.new(Precent,0,0.5,0)
  221. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Precent*100
  222. end
  223. end)
  224.  
  225. UserInputService.InputEnded:Connect(function(input)
  226. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  227. Dragging = false
  228. end
  229. end)
  230. end
  231. coroutine.wrap(YTWJ_fake_script)()
  232. local function SGVFK_fake_script() -- Frame.Dragify
  233. local script = Instance.new('LocalScript', Frame)
  234.  
  235. local UIS = game:GetService("UserInputService")
  236. function dragify(Frame)
  237. dragToggle = nil
  238. local dragSpeed = 0
  239. dragInput = nil
  240. dragStart = nil
  241. local dragPos = nil
  242. function updateInput(input)
  243. local Delta = input.Position - dragStart
  244. local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  245. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
  246. end
  247. Frame.InputBegan:Connect(function(input)
  248. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  249. dragToggle = true
  250. dragStart = input.Position
  251. startPos = Frame.Position
  252. input.Changed:Connect(function()
  253. if input.UserInputState == Enum.UserInputState.End then
  254. dragToggle = false
  255. end
  256. end)
  257. end
  258. end)
  259. Frame.InputChanged:Connect(function(input)
  260. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  261. dragInput = input
  262. end
  263. end)
  264. game:GetService("UserInputService").InputChanged:Connect(function(input)
  265. if input == dragInput and dragToggle then
  266. updateInput(input)
  267. end
  268. end)
  269. end
  270.  
  271. dragify(script.Parent)
  272. end
  273. coroutine.wrap(SGVFK_fake_script)()
Add Comment
Please, Sign In to add comment