Advertisement
27x34k

Player Hub (walkspeed and anchor)

Jan 6th, 2022
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.48 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local PlayerHub = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local openMore = Instance.new("TextButton")
  9. local UICorner = Instance.new("UICorner")
  10. local MoreOptions = Instance.new("Frame")
  11. local Des = Instance.new("TextButton")
  12. local UICorner_2 = Instance.new("UICorner")
  13. local Cache = Instance.new("Frame")
  14. local TextLabel = Instance.new("TextLabel")
  15. local UICorner_3 = Instance.new("UICorner")
  16. local yes = Instance.new("TextButton")
  17. local UICorner_4 = Instance.new("UICorner")
  18. local no = Instance.new("TextButton")
  19. local UICorner_5 = Instance.new("UICorner")
  20. local TextLabel_2 = Instance.new("TextLabel")
  21. local speed = Instance.new("Frame")
  22. local speedmanager = Instance.new("TextBox")
  23. local UICorner_6 = Instance.new("UICorner")
  24. local TextButton = Instance.new("TextButton")
  25. local UICorner_7 = Instance.new("UICorner")
  26. local UICorner_8 = Instance.new("UICorner")
  27. local WalkSpeed = Instance.new("TextButton")
  28. local UICorner_9 = Instance.new("UICorner")
  29. local PlayerOpen = Instance.new("TextButton")
  30. local UICorner_10 = Instance.new("UICorner")
  31. local Player = Instance.new("Frame")
  32. local Root = Instance.new("TextButton")
  33. local UICorner_11 = Instance.new("UICorner")
  34. local UICorner_12 = Instance.new("UICorner")
  35. local Default = Instance.new("Frame")
  36. local PlayerName = Instance.new("TextLabel")
  37. local Hello = Instance.new("TextLabel")
  38. local UICorner_13 = Instance.new("UICorner")
  39. local UICorner_14 = Instance.new("UICorner")
  40.  
  41. --Properties:
  42.  
  43. PlayerHub.Name = "PlayerHub"
  44. PlayerHub.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  45. PlayerHub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  46.  
  47. MainFrame.Name = "MainFrame"
  48. MainFrame.Parent = PlayerHub
  49. MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  50. MainFrame.Position = UDim2.new(0.748585284, 0, 0.503912389, 0)
  51. MainFrame.Size = UDim2.new(0, 270, 0, 172)
  52.  
  53. openMore.Name = "openMore"
  54. openMore.Parent = MainFrame
  55. openMore.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  56. openMore.Position = UDim2.new(0.718518496, 0, 0, 0)
  57. openMore.Size = UDim2.new(0, 76, 0, 26)
  58. openMore.Font = Enum.Font.SourceSans
  59. openMore.Text = "More options"
  60. openMore.TextColor3 = Color3.fromRGB(255, 255, 255)
  61. openMore.TextScaled = true
  62. openMore.TextSize = 14.000
  63. openMore.TextWrapped = true
  64.  
  65. UICorner.CornerRadius = UDim.new(0, 5)
  66. UICorner.Parent = openMore
  67.  
  68. MoreOptions.Name = "MoreOptions"
  69. MoreOptions.Parent = MainFrame
  70. MoreOptions.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  71. MoreOptions.BackgroundTransparency = 1.000
  72. MoreOptions.Position = UDim2.new(0.718518496, 0, -0.25, 0)
  73. MoreOptions.Size = UDim2.new(0, 76, 0, 43)
  74. MoreOptions.Visible = false
  75.  
  76. Des.Name = "Des"
  77. Des.Parent = MoreOptions
  78. Des.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  79. Des.Position = UDim2.new(0, 0, 0.348837197, 0)
  80. Des.Size = UDim2.new(0, 76, 0, 22)
  81. Des.Font = Enum.Font.SourceSans
  82. Des.Text = "Destroy GUI"
  83. Des.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. Des.TextScaled = true
  85. Des.TextSize = 14.000
  86. Des.TextWrapped = true
  87.  
  88. UICorner_2.Parent = Des
  89.  
  90. Cache.Name = "Cache"
  91. Cache.Parent = MoreOptions
  92. Cache.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  93. Cache.BackgroundTransparency = 1.000
  94. Cache.Position = UDim2.new(-7.71052647, 0, -0.232558146, 0)
  95. Cache.Size = UDim2.new(0, 168, 0, 100)
  96. Cache.Visible = false
  97.  
  98. TextLabel.Parent = Cache
  99. TextLabel.BackgroundColor3 = Color3.fromRGB(57, 57, 57)
  100. TextLabel.Position = UDim2.new(-0.095238097, 0, 0.0299999993, 0)
  101. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  102. TextLabel.Font = Enum.Font.SourceSans
  103. TextLabel.Text = "Confirm"
  104. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  105. TextLabel.TextScaled = true
  106. TextLabel.TextSize = 14.000
  107. TextLabel.TextWrapped = true
  108.  
  109. UICorner_3.Parent = TextLabel
  110.  
  111. yes.Name = "yes"
  112. yes.Parent = Cache
  113. yes.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  114. yes.Position = UDim2.new(-0.095238097, 0, 0.680000007, 0)
  115. yes.Size = UDim2.new(0, 78, 0, 24)
  116. yes.Font = Enum.Font.SourceSans
  117. yes.Text = "Yes."
  118. yes.TextColor3 = Color3.fromRGB(255, 255, 255)
  119. yes.TextScaled = true
  120. yes.TextSize = 14.000
  121. yes.TextWrapped = true
  122.  
  123. UICorner_4.Parent = yes
  124.  
  125. no.Name = "no"
  126. no.Parent = Cache
  127. no.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  128. no.Position = UDim2.new(0.630952358, 0, 0.680000007, 0)
  129. no.Size = UDim2.new(0, 78, 0, 24)
  130. no.Font = Enum.Font.SourceSans
  131. no.Text = "No."
  132. no.TextColor3 = Color3.fromRGB(255, 255, 255)
  133. no.TextScaled = true
  134. no.TextSize = 14.000
  135. no.TextWrapped = true
  136.  
  137. UICorner_5.Parent = no
  138.  
  139. TextLabel_2.Parent = MainFrame
  140. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  141. TextLabel_2.BackgroundTransparency = 1.000
  142. TextLabel_2.Size = UDim2.new(0, 76, 0, 16)
  143. TextLabel_2.Font = Enum.Font.SourceSans
  144. TextLabel_2.Text = "Player HUB"
  145. TextLabel_2.TextColor3 = Color3.fromRGB(104, 104, 104)
  146. TextLabel_2.TextScaled = true
  147. TextLabel_2.TextSize = 14.000
  148. TextLabel_2.TextWrapped = true
  149.  
  150. speed.Name = "speed"
  151. speed.Parent = MainFrame
  152. speed.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  153. speed.Position = UDim2.new(0.316675723, 0, 0.185218632, 0)
  154. speed.Size = UDim2.new(0, 165, 0, 132)
  155. speed.Visible = false
  156.  
  157. speedmanager.Name = "speedmanager"
  158. speedmanager.Parent = speed
  159. speedmanager.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  160. speedmanager.Position = UDim2.new(0.104787007, 0, 0.159090906, 0)
  161. speedmanager.Size = UDim2.new(0, 130, 0, 28)
  162. speedmanager.Font = Enum.Font.SourceSans
  163. speedmanager.PlaceholderColor3 = Color3.fromRGB(144, 144, 144)
  164. speedmanager.PlaceholderText = "Speed here"
  165. speedmanager.Text = ""
  166. speedmanager.TextColor3 = Color3.fromRGB(255, 255, 255)
  167. speedmanager.TextScaled = true
  168. speedmanager.TextSize = 14.000
  169. speedmanager.TextWrapped = true
  170.  
  171. UICorner_6.Parent = speedmanager
  172.  
  173. TextButton.Parent = speed
  174. TextButton.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  175. TextButton.Position = UDim2.new(0.244971454, 0, 0.583333313, 0)
  176. TextButton.Size = UDim2.new(0, 83, 0, 37)
  177. TextButton.Font = Enum.Font.SourceSans
  178. TextButton.Text = "Submit speed"
  179. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  180. TextButton.TextScaled = true
  181. TextButton.TextSize = 14.000
  182. TextButton.TextWrapped = true
  183.  
  184. UICorner_7.Parent = TextButton
  185.  
  186. UICorner_8.Parent = speed
  187.  
  188. WalkSpeed.Name = "WalkSpeed"
  189. WalkSpeed.Parent = MainFrame
  190. WalkSpeed.BackgroundColor3 = Color3.fromRGB(57, 57, 57)
  191. WalkSpeed.Position = UDim2.new(0.0296296291, 0, 0.191860467, 0)
  192. WalkSpeed.Size = UDim2.new(0, 68, 0, 20)
  193. WalkSpeed.Font = Enum.Font.SourceSans
  194. WalkSpeed.Text = "WalkSpeed"
  195. WalkSpeed.TextColor3 = Color3.fromRGB(255, 255, 255)
  196. WalkSpeed.TextScaled = true
  197. WalkSpeed.TextSize = 14.000
  198. WalkSpeed.TextWrapped = true
  199.  
  200. UICorner_9.CornerRadius = UDim.new(0, 5)
  201. UICorner_9.Parent = WalkSpeed
  202.  
  203. PlayerOpen.Name = "PlayerOpen"
  204. PlayerOpen.Parent = MainFrame
  205. PlayerOpen.BackgroundColor3 = Color3.fromRGB(57, 57, 57)
  206. PlayerOpen.Position = UDim2.new(0.0296296291, 0, 0.377906978, 0)
  207. PlayerOpen.Size = UDim2.new(0, 68, 0, 20)
  208. PlayerOpen.Font = Enum.Font.SourceSans
  209. PlayerOpen.Text = "Player"
  210. PlayerOpen.TextColor3 = Color3.fromRGB(255, 255, 255)
  211. PlayerOpen.TextScaled = true
  212. PlayerOpen.TextSize = 14.000
  213. PlayerOpen.TextWrapped = true
  214.  
  215. UICorner_10.CornerRadius = UDim.new(0, 5)
  216. UICorner_10.Parent = PlayerOpen
  217.  
  218. Player.Name = "Player"
  219. Player.Parent = MainFrame
  220. Player.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  221. Player.Position = UDim2.new(0.355555564, 0, 0.191860467, 0)
  222. Player.Size = UDim2.new(0, 151, 0, 121)
  223. Player.Visible = false
  224.  
  225. Root.Name = "Root"
  226. Root.Parent = Player
  227. Root.BackgroundColor3 = Color3.fromRGB(76, 76, 76)
  228. Root.Position = UDim2.new(0.152317882, 0, 0.0991735533, 0)
  229. Root.Size = UDim2.new(0, 105, 0, 20)
  230. Root.Font = Enum.Font.SourceSans
  231. Root.Text = "Anchor RootPart"
  232. Root.TextColor3 = Color3.fromRGB(255, 255, 255)
  233. Root.TextScaled = true
  234. Root.TextSize = 14.000
  235. Root.TextWrapped = true
  236.  
  237. UICorner_11.Parent = Root
  238.  
  239. UICorner_12.Parent = Player
  240.  
  241. Default.Name = "Default"
  242. Default.Parent = MainFrame
  243. Default.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  244. Default.Position = UDim2.new(0.333333343, 0, 0.255813956, 0)
  245. Default.Size = UDim2.new(0, 165, 0, 119)
  246.  
  247. PlayerName.Name = "PlayerName"
  248. PlayerName.Parent = Default
  249. PlayerName.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  250. PlayerName.Position = UDim2.new(0.484848499, 0, 0.134453788, 0)
  251. PlayerName.Size = UDim2.new(0, 85, 0, 34)
  252. PlayerName.Font = Enum.Font.SourceSans
  253. PlayerName.Text = " "
  254. PlayerName.TextColor3 = Color3.fromRGB(255, 255, 255)
  255. PlayerName.TextScaled = true
  256. PlayerName.TextSize = 14.000
  257. PlayerName.TextWrapped = true
  258.  
  259. Hello.Name = "Hello"
  260. Hello.Parent = Default
  261. Hello.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  262. Hello.Position = UDim2.new(0.0727272779, 0, 0.134453788, 0)
  263. Hello.Size = UDim2.new(0, 66, 0, 34)
  264. Hello.Font = Enum.Font.SourceSans
  265. Hello.Text = "Hello, "
  266. Hello.TextColor3 = Color3.fromRGB(255, 255, 255)
  267. Hello.TextScaled = true
  268. Hello.TextSize = 14.000
  269. Hello.TextWrapped = true
  270.  
  271. UICorner_13.Parent = Default
  272.  
  273. UICorner_14.CornerRadius = UDim.new(0, 5)
  274. UICorner_14.Parent = MainFrame
  275.  
  276. -- Scripts:
  277.  
  278. local function RLAYP_fake_script() -- openMore.Script
  279. local script = Instance.new('Script', openMore)
  280.  
  281. script.Parent.MouseButton1Click:Connect(function()
  282. if script.Parent.Parent.MoreOptions.Visible == false then
  283. script.Parent.Parent.MoreOptions.Visible = true
  284. wait(5)
  285. script.Parent.Parent.MoreOptions.Visible = false
  286. script.Parent.Parent.MoreOptions.Cache.Visible = false
  287. else
  288. script.Parent.Parent.MoreOptions.Visible = false
  289. end
  290. end)
  291.  
  292. end
  293. coroutine.wrap(RLAYP_fake_script)()
  294. local function UBAV_fake_script() -- Des.Script
  295. local script = Instance.new('Script', Des)
  296.  
  297. script.Parent.MouseButton1Click:Connect(function()
  298. script.Parent.Parent.Cache.Visible = true
  299. end)
  300.  
  301. end
  302. coroutine.wrap(UBAV_fake_script)()
  303. local function TNBD_fake_script() -- yes.Script
  304. local script = Instance.new('Script', yes)
  305.  
  306. script.Parent.MouseButton1Click:Connect(function()
  307. script.Parent.Parent.Parent.Parent.Parent:Destroy()
  308. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  309. game.Players.LocalPlayer.Character.Humanoid.Walkspeed = 16
  310. end)
  311.  
  312. end
  313. coroutine.wrap(TNBD_fake_script)()
  314. local function GEOYS_fake_script() -- no.Script
  315. local script = Instance.new('Script', no)
  316.  
  317. script.Parent.MouseButton1Click:Connect(function()
  318. script.Parent.Parent.Visible = false
  319. end)
  320.  
  321. end
  322. coroutine.wrap(GEOYS_fake_script)()
  323. local function YFYERB_fake_script() -- TextButton.LocalScript
  324. local script = Instance.new('LocalScript', TextButton)
  325.  
  326. script.Parent.MouseButton1Click:Connect(function()
  327. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = script.Parent.Parent.speedmanager.Text
  328. end)
  329. end
  330. coroutine.wrap(YFYERB_fake_script)()
  331. local function NODAAGE_fake_script() -- MainFrame.LocalScript
  332. local script = Instance.new('LocalScript', MainFrame)
  333.  
  334. local UIS = game:GetService('UserInputService')
  335. local frame = script.Parent
  336. local dragToggle = nil
  337. local dragSpeed = 0.25
  338. local dragStart = nil
  339. local startPos = nil
  340.  
  341. local function updateInput(input)
  342. local delta = input.Position - dragStart
  343. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  344. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  345. game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  346. end
  347.  
  348. frame.InputBegan:Connect(function(input)
  349. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  350. dragToggle = true
  351. dragStart = input.Position
  352. startPos = frame.Position
  353. input.Changed:Connect(function()
  354. if input.UserInputState == Enum.UserInputState.End then
  355. dragToggle = false
  356. end
  357. end)
  358. end
  359. end)
  360.  
  361. UIS.InputChanged:Connect(function(input)
  362. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  363. if dragToggle then
  364. updateInput(input)
  365. end
  366. end
  367. end)
  368.  
  369. end
  370. coroutine.wrap(NODAAGE_fake_script)()
  371. local function MBTAJBL_fake_script() -- WalkSpeed.Script
  372. local script = Instance.new('Script', WalkSpeed)
  373.  
  374. script.Parent.MouseButton1Click:Connect(function()
  375. script.Parent.Parent.speed.Visible = true
  376. script.Parent.Parent.Player.Visible = false
  377. script.Parent.Parent.Default.Visible = false
  378. end)
  379.  
  380. end
  381. coroutine.wrap(MBTAJBL_fake_script)()
  382. local function IRSQHHE_fake_script() -- PlayerOpen.Script
  383. local script = Instance.new('Script', PlayerOpen)
  384.  
  385. script.Parent.MouseButton1Click:Connect(function()
  386. script.Parent.Parent.Player.Visible = true
  387. script.Parent.Parent.speed.Visible = false
  388. script.Parent.Parent.Default.Visible = false
  389. end)
  390.  
  391. end
  392. coroutine.wrap(IRSQHHE_fake_script)()
  393. local function YAPJ_fake_script() -- Root.LocalScript
  394. local script = Instance.new('LocalScript', Root)
  395.  
  396. script.Parent.MouseButton1Click:Connect(function()
  397. if game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored == true then
  398. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  399. else
  400. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  401. end
  402.  
  403.  
  404. if game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored == false then
  405. script.Parent.Text = "Anchor RootPart"
  406. else
  407. script.Parent.Text = "UnAnchor RootPart"
  408. end
  409. end)
  410.  
  411. end
  412. coroutine.wrap(YAPJ_fake_script)()
  413. local function OEFKLQ_fake_script() -- Default.LocalScript
  414. local script = Instance.new('LocalScript', Default)
  415.  
  416. local Player = game.Players.LocalPlayer
  417.  
  418. script.Parent.PlayerName.Text = Player.Name
  419. end
  420. coroutine.wrap(OEFKLQ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement