ben10keil5

fat hub 2 opensource wip

Jan 1st, 2023
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.13 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local Frame_2 = Instance.new("Frame")
  4. local UICorner = Instance.new("UICorner")
  5. local Print = Instance.new("TextButton")
  6. local UICorner_2 = Instance.new("UICorner")
  7. local Gradient = Instance.new("Frame")
  8. local UIGradient = Instance.new("UIGradient")
  9. local UICorner_3 = Instance.new("UICorner")
  10. local TextLabel = Instance.new("TextLabel")
  11. local TextLabel_2 = Instance.new("TextLabel")
  12. local TextLabel_3 = Instance.new("TextLabel")
  13. local ImageLabel = Instance.new("ImageLabel")
  14. local ImageLabel_2 = Instance.new("ImageLabel")
  15. local UICorner_4 = Instance.new("UICorner")
  16. local ImageLabel_3 = Instance.new("ImageLabel")
  17. local UICorner_5 = Instance.new("UICorner")
  18. local TextLabel_4 = Instance.new("TextLabel")
  19. local VG = Instance.new("TextButton")
  20. local UICorner_6 = Instance.new("UICorner")
  21. local Frame_3 = Instance.new("Frame")
  22. local UIGradient_2 = Instance.new("UIGradient")
  23. local HP = Instance.new("Frame")
  24. local Frame_4 = Instance.new("Frame")
  25. local UICorner_7 = Instance.new("UICorner")
  26. local UIGradient_3 = Instance.new("UIGradient")
  27. local UICorner_8 = Instance.new("UICorner")
  28. local Infiniteyield = Instance.new("TextButton")
  29. local UICorner_9 = Instance.new("UICorner")
  30. local FR = Instance.new("TextButton")
  31. local UICorner_10 = Instance.new("UICorner")
  32. local neon = Instance.new("TextButton")
  33. local UICorner_11 = Instance.new("UICorner")
  34. local UICorner_12 = Instance.new("UICorner")
  35. local TextButton = Instance.new("TextButton")
  36.  
  37. --Properties:
  38.  
  39. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  40. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  41.  
  42. Frame.Parent = ScreenGui
  43. Frame.BackgroundColor3 = Color3.fromRGB(249, 180, 94)
  44. Frame.Position = UDim2.new(0.15356265, 0, 0.175362319, 0)
  45. Frame.Size = UDim2.new(0, 587, 0, 527)
  46.  
  47. Frame_2.Parent = Frame
  48. Frame_2.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  49. Frame_2.Position = UDim2.new(0.00882351864, 0, 0.00960840564, 0)
  50. Frame_2.Size = UDim2.new(0, 578, 0, 516)
  51.  
  52. UICorner.Parent = Frame_2
  53.  
  54. Print.Name = "Print"
  55. Print.Parent = Frame_2
  56. Print.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  57. Print.Position = UDim2.new(0.0425988585, 0, 0.243087232, 0)
  58. Print.Size = UDim2.new(0, 193, 0, 58)
  59. Print.Font = Enum.Font.Unknown
  60. Print.Text = "Print Text"
  61. Print.TextColor3 = Color3.fromRGB(249, 180, 94)
  62. Print.TextScaled = true
  63. Print.TextSize = 37.000
  64. Print.TextWrapped = true
  65. Print.Mousebutton1Down:connect(function()
  66.     print("EA Sports Its in the game")
  67. end)
  68.  
  69. UICorner_2.Parent = Print
  70.  
  71. Gradient.Name = "Gradient"
  72. Gradient.Parent = Frame_2
  73. Gradient.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. Gradient.BorderColor3 = Color3.fromRGB(27, 42, 53)
  75. Gradient.BorderSizePixel = 0
  76. Gradient.Position = UDim2.new(0.651225746, 0, 0.049427025, 0)
  77. Gradient.Size = UDim2.new(0, 173, 0, 158)
  78.  
  79. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(242, 157, 76)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(238, 201, 86))}
  80. UIGradient.Parent = Gradient
  81.  
  82. UICorner_3.Parent = Gradient
  83.  
  84. TextLabel.Parent = Gradient
  85. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  86. TextLabel.BackgroundTransparency = 1.000
  87. TextLabel.Position = UDim2.new(0, 0, 1.05063283, 0)
  88. TextLabel.Size = UDim2.new(0, 173, 0, 50)
  89. TextLabel.Font = Enum.Font.Ubuntu
  90. TextLabel.Text = "Fat Hub 2"
  91. TextLabel.TextColor3 = Color3.fromRGB(249, 180, 94)
  92. TextLabel.TextScaled = true
  93. TextLabel.TextSize = 1.000
  94. TextLabel.TextWrapped = true
  95.  
  96. TextLabel_2.Parent = TextLabel
  97. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  98. TextLabel_2.BackgroundTransparency = 1.000
  99. TextLabel_2.Position = UDim2.new(-0.150288999, 0, 0.790632963, 0)
  100. TextLabel_2.Size = UDim2.new(0, 227, 0, 53)
  101. TextLabel_2.Font = Enum.Font.Ubuntu
  102. TextLabel_2.Text = "- Created Fat Hub 2.0"
  103. TextLabel_2.TextColor3 = Color3.fromRGB(249, 180, 94)
  104. TextLabel_2.TextSize = 18.000
  105. TextLabel_2.TextWrapped = true
  106.  
  107. TextLabel_3.Parent = TextLabel
  108. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  109. TextLabel_3.BackgroundTransparency = 1.000
  110. TextLabel_3.Position = UDim2.new(-0.260115594, 0, 1.35063303, 0)
  111. TextLabel_3.Size = UDim2.new(0, 227, 0, 53)
  112. TextLabel_3.Font = Enum.Font.Ubuntu
  113. TextLabel_3.Text = "-Added Buttons"
  114. TextLabel_3.TextColor3 = Color3.fromRGB(249, 180, 94)
  115. TextLabel_3.TextSize = 18.000
  116. TextLabel_3.TextWrapped = true
  117.  
  118. ImageLabel.Parent = Gradient
  119. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  120. ImageLabel.BackgroundTransparency = 1.000
  121. ImageLabel.Position = UDim2.new(0.0693641603, 0, 0.0379746817, 0)
  122. ImageLabel.Size = UDim2.new(0, 148, 0, 145)
  123. ImageLabel.Image = "http://www.roblox.com/asset/?id=10653365009"
  124. ImageLabel.ImageColor3 = Color3.fromRGB(27, 27, 27)
  125.  
  126. ImageLabel_2.Parent = Gradient
  127. ImageLabel_2.BackgroundColor3 = Color3.fromRGB(255, 204, 83)
  128. ImageLabel_2.Position = UDim2.new(0.630057812, 0, 2.70841002, 0)
  129. ImageLabel_2.Size = UDim2.new(0, 80, 0, 52)
  130.  
  131. UICorner_4.Parent = ImageLabel_2
  132.  
  133. ImageLabel_3.Parent = ImageLabel_2
  134. ImageLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  135. ImageLabel_3.BackgroundTransparency = 1.000
  136. ImageLabel_3.Position = UDim2.new(0.0621749908, 0, 0.0978710502, 0)
  137. ImageLabel_3.Size = UDim2.new(0, 69, 0, 43)
  138. ImageLabel_3.Image = "http://www.roblox.com/asset/?id=6377921851"
  139.  
  140. UICorner_5.Parent = ImageLabel_3
  141.  
  142. TextLabel_4.Parent = Gradient
  143. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  144. TextLabel_4.BackgroundTransparency = 1.000
  145. TextLabel_4.Position = UDim2.new(-2.09826589, 0, 2.88607574, 0)
  146. TextLabel_4.Size = UDim2.new(0, 137, 0, 21)
  147. TextLabel_4.Font = Enum.Font.Ubuntu
  148. TextLabel_4.Text = "\",\" Toggle Gui"
  149. TextLabel_4.TextColor3 = Color3.fromRGB(249, 180, 94)
  150. TextLabel_4.TextScaled = true
  151. TextLabel_4.TextSize = 1.000
  152. TextLabel_4.TextWrapped = true
  153.  
  154. VG.Name = "VG"
  155. VG.Parent = Frame_2
  156. VG.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  157. VG.Position = UDim2.new(0.0425988436, 0, 0.0919243842, 0)
  158. VG.Size = UDim2.new(0, 193, 0, 58)
  159. VG.Font = Enum.Font.Unknown
  160. VG.Text = "Load VG Hub"
  161. VG.TextColor3 = Color3.fromRGB(249, 180, 94)
  162. VG.TextScaled = true
  163. VG.TextSize = 37.000
  164. VG.TextWrapped = true
  165. VG.Mousebutton1Down:connect(function()
  166.     loadstring(game:HttpGet('https://raw.githubusercontent.com/1201for/V.G-Hub/main/V.Ghub'))()
  167. end)
  168.  
  169. UICorner_6.Parent = VG
  170.  
  171. Frame_3.Parent = Frame_2
  172. Frame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  173. Frame_3.BorderSizePixel = 0
  174. Frame_3.Position = UDim2.new(0.574394524, 0, 0, 0)
  175. Frame_3.Size = UDim2.new(0, 4, 0, 516)
  176.  
  177. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(242, 157, 76)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(238, 201, 86))}
  178. UIGradient_2.Parent = Frame_3
  179.  
  180. HP.Name = "HP"
  181. HP.Parent = Frame_2
  182. HP.BackgroundColor3 = Color3.fromRGB(38, 13, 14)
  183. HP.BorderSizePixel = 0
  184. HP.Position = UDim2.new(0, 25, 0, 16)
  185. HP.Size = UDim2.new(0, 292, 0, 9)
  186.  
  187. Frame_4.Parent = HP
  188. Frame_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  189. Frame_4.BorderSizePixel = 0
  190. Frame_4.Size = UDim2.new(0.300000012, 0, 1, 0)
  191.  
  192. UICorner_7.Parent = Frame_4
  193.  
  194. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(242, 157, 76)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(238, 201, 86))}
  195. UIGradient_3.Parent = Frame_4
  196.  
  197. UICorner_8.Parent = HP
  198.  
  199. Infiniteyield.Name = "Infinite yield"
  200. Infiniteyield.Parent = Frame_2
  201. Infiniteyield.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  202. Infiniteyield.Position = UDim2.new(0.352287471, 0, 0.923319757, 0)
  203. Infiniteyield.Size = UDim2.new(0, 113, 0, 30)
  204. Infiniteyield.Font = Enum.Font.Unknown
  205. Infiniteyield.Text = "InfYield Admin"
  206. Infiniteyield.TextColor3 = Color3.fromRGB(249, 180, 94)
  207. Infiniteyield.TextScaled = true
  208. Infiniteyield.TextSize = 37.000
  209. Infiniteyield.TextWrapped = true
  210. Infiniteyield.Mousebutton1Down:connect(function()
  211.     loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  212. end)
  213.  
  214. UICorner_9.Parent = Infiniteyield
  215.  
  216. FR.Name = "FR"
  217. FR.Parent = Frame_2
  218. FR.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  219. FR.Position = UDim2.new(0.352287471, 0, 0.834172487, 0)
  220. FR.Size = UDim2.new(0, 113, 0, 30)
  221. FR.Font = Enum.Font.Unknown
  222. FR.Text = "Make Pets Fly Ride (Client-Sided)"
  223. FR.TextColor3 = Color3.fromRGB(249, 180, 94)
  224. FR.TextScaled = true
  225. FR.TextSize = 37.000
  226. FR.TextWrapped = true
  227. FR.Mousebutton1Down:connect(function()
  228.     while true do
  229.         wait(1)
  230.         local clientData = require(game.ReplicatedStorage.ClientModules.Core.ClientData)
  231.         local playerData = clientData.get_data()[tostring(game.Players.LocalPlayer)]
  232.         for i,v in pairs(playerData.inventory.pets) do
  233.             v.properties.rideable = true
  234.             v.properties.flyable = true
  235.         end
  236.     end
  237. end)
  238.  
  239. UICorner_10.Parent = FR
  240.  
  241. neon.Name = "neon"
  242. neon.Parent = Frame_2
  243. neon.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  244. neon.Position = UDim2.new(0.352287471, 0, 0.739211202, 0)
  245. neon.Size = UDim2.new(0, 113, 0, 30)
  246. neon.Font = Enum.Font.Unknown
  247. neon.Text = "Make Pets Neon (Client-Sided)"
  248. neon.TextColor3 = Color3.fromRGB(249, 180, 94)
  249. neon.TextScaled = true
  250. neon.TextSize = 37.000
  251. neon.TextWrapped = true
  252. neon.Mousebutton1Down:connect(function()
  253.     while true do
  254.         wait(1)
  255.         local clientData = require(game.ReplicatedStorage.ClientModules.Core.ClientData)
  256.         local playerData = clientData.get_data()[tostring(game.Players.LocalPlayer)]
  257.         for i,v in pairs(playerData.inventory.pets) do
  258.             v.properties.neon = true
  259.         end
  260.     end
  261. end)
  262.  
  263. UICorner_11.Parent = neon
  264.  
  265. UICorner_12.Parent = Frame
  266.  
  267. TextButton.Parent = Frame
  268. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  269. TextButton.BackgroundTransparency = 1.000
  270. TextButton.Position = UDim2.new(0.943781912, 0, -0.0398481674, 0)
  271. TextButton.Size = UDim2.new(0, 49, 0, 57)
  272. TextButton.Font = Enum.Font.Unknown
  273. TextButton.Text = "X"
  274. TextButton.TextColor3 = Color3.fromRGB(255, 128, 0)
  275. TextButton.TextScaled = true
  276. TextButton.TextSize = 14.000
  277. TextButton.TextWrapped = true
  278.  
  279. -- Scripts:
  280.  
  281. local function QPRC_fake_script() -- Print.LocalScript
  282.     local script = Instance.new('LocalScript', Print)
  283.  
  284.     script.Parent.MouseEnter:Connect(function()
  285.         script.Parent:TweenSize(UDim2.new(0.06, 193,0, 58),"Out","Quart",.5,true) --
  286.     end)
  287.    
  288.     script.Parent.MouseLeave:Connect(function()
  289.         script.Parent:TweenSize(UDim2.new(0, 193,0, 58),"Out","Quart",.5,true)
  290.     end)
  291.    
  292. end
  293. coroutine.wrap(QPRC_fake_script)()
  294. local function HISOO_fake_script() -- Print.LocalScript
  295.     local script = Instance.new('LocalScript', Print)
  296.  
  297.     script.Parent.MouseButton1Click:Connect(function()
  298.         script.Disabled = true
  299.         script.Click:Play()
  300.         wait(0.1)
  301.         script.Disabled = false
  302.     end)
  303.    
  304. end
  305. coroutine.wrap(HISOO_fake_script)()
  306. local function TZSFYK_fake_script() -- VG.LocalScript
  307.     local script = Instance.new('LocalScript', VG)
  308.  
  309.     script.Parent.MouseEnter:Connect(function()
  310.         script.Parent:TweenSize(UDim2.new(0.06, 193,0, 58),"Out","Quart",.5,true) --
  311.     end)
  312.    
  313.     script.Parent.MouseLeave:Connect(function()
  314.         script.Parent:TweenSize(UDim2.new(0, 193,0, 58),"Out","Quart",.5,true)
  315.     end)
  316.    
  317. end
  318. coroutine.wrap(TZSFYK_fake_script)()
  319. local function CUQAVS_fake_script() -- VG.LocalScript
  320.     local script = Instance.new('LocalScript', VG)
  321.  
  322.     script.Parent.MouseButton1Click:Connect(function()
  323.         script.Disabled = true
  324.         script.Click:Play()
  325.         wait(0.1)
  326.         script.Disabled = false
  327.     end)
  328.    
  329. end
  330. coroutine.wrap(CUQAVS_fake_script)()
  331. local function VVRAP_fake_script() -- Frame_4.LocalScript
  332.     local script = Instance.new('LocalScript', Frame_4)
  333.  
  334.     wait(.1)
  335.     while true do
  336.         hp = game.Players.LocalPlayer.Character.Humanoid.Health/100
  337.         script.Parent:TweenSize(UDim2.new(hp,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.15)
  338.         wait(.2)
  339.     end
  340. end
  341. coroutine.wrap(VVRAP_fake_script)()
  342. local function WJBYSM_fake_script() -- Infiniteyield.LocalScript
  343.     local script = Instance.new('LocalScript', Infiniteyield)
  344.  
  345.     script.Parent.MouseEnter:Connect(function()
  346.         script.Parent:TweenSize(UDim2.new(0.02, 113,0, 30),"Out","Quart",.5,true) --
  347.     end)
  348.    
  349.     script.Parent.MouseLeave:Connect(function()
  350.         script.Parent:TweenSize(UDim2.new(0, 113,0, 30),"Out","Quart",.5,true)
  351.     end)
  352.    
  353. end
  354. coroutine.wrap(WJBYSM_fake_script)()
  355. local function WMAUC_fake_script() -- Infiniteyield.LocalScript
  356.     local script = Instance.new('LocalScript', Infiniteyield)
  357.  
  358.     script.Parent.MouseButton1Click:Connect(function()
  359.         script.Disabled = true
  360.         script.Click:Play()
  361.         wait(0.1)
  362.         script.Disabled = false
  363.     end)
  364.    
  365. end
  366. coroutine.wrap(WMAUC_fake_script)()
  367. local function NLZVXR_fake_script() -- FR.LocalScript
  368.     local script = Instance.new('LocalScript', FR)
  369.  
  370.     script.Parent.MouseEnter:Connect(function()
  371.         script.Parent:TweenSize(UDim2.new(0.02, 113,0, 30),"Out","Quart",.5,true) --
  372.     end)
  373.    
  374.     script.Parent.MouseLeave:Connect(function()
  375.         script.Parent:TweenSize(UDim2.new(0, 113,0, 30),"Out","Quart",.5,true)
  376.     end)
  377.    
  378. end
  379. coroutine.wrap(NLZVXR_fake_script)()
  380. local function PANMT_fake_script() -- FR.LocalScript
  381.     local script = Instance.new('LocalScript', FR)
  382.  
  383.     script.Parent.MouseButton1Click:Connect(function()
  384.         script.Disabled = true
  385.         script.Click:Play()
  386.         wait(0.1)
  387.         script.Disabled = false
  388.     end)
  389.    
  390. end
  391. coroutine.wrap(PANMT_fake_script)()
  392. local function EKDSJ_fake_script() -- neon.LocalScript
  393.     local script = Instance.new('LocalScript', neon)
  394.  
  395.     script.Parent.MouseEnter:Connect(function()
  396.         script.Parent:TweenSize(UDim2.new(0.02, 113,0, 30),"Out","Quart",.5,true) --
  397.     end)
  398.    
  399.     script.Parent.MouseLeave:Connect(function()
  400.         script.Parent:TweenSize(UDim2.new(0, 113,0, 30),"Out","Quart",.5,true)
  401.     end)
  402.    
  403. end
  404. coroutine.wrap(EKDSJ_fake_script)()
  405. local function AIUHQYA_fake_script() -- neon.LocalScript
  406.     local script = Instance.new('LocalScript', neon)
  407.  
  408.     script.Parent.MouseButton1Click:Connect(function()
  409.         script.Disabled = true
  410.         script.Click:Play()
  411.         wait(0.1)
  412.         script.Disabled = false
  413.     end)
  414.    
  415. end
  416. coroutine.wrap(AIUHQYA_fake_script)()
  417. local function XVBJSYU_fake_script() -- Frame.Smooth GUI Dragging
  418.     local script = Instance.new('LocalScript', Frame)
  419.  
  420.     local UserInputService = game:GetService("UserInputService")
  421.     local runService = (game:GetService("RunService"));
  422.    
  423.     local gui = script.Parent
  424.    
  425.     local dragging
  426.     local dragInput
  427.     local dragStart
  428.     local startPos
  429.    
  430.     function Lerp(a, b, m)
  431.         return a + (b - a) * m
  432.     end;
  433.    
  434.     local lastMousePos
  435.     local lastGoalPos
  436.     local DRAG_SPEED = (8); -- // The speed of the UI darg.
  437.     function Update(dt)
  438.         if not (startPos) then return end;
  439.         if not (dragging) and (lastGoalPos) then
  440.             gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  441.             return
  442.         end;
  443.    
  444.         local delta = (lastMousePos - UserInputService:GetMouseLocation())
  445.         local xGoal = (startPos.X.Offset - delta.X);
  446.         local yGoal = (startPos.Y.Offset - delta.Y);
  447.         lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  448.         gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  449.     end;
  450.    
  451.     gui.InputBegan:Connect(function(input)
  452.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  453.             dragging = true
  454.             dragStart = input.Position
  455.             startPos = gui.Position
  456.             lastMousePos = UserInputService:GetMouseLocation()
  457.    
  458.             input.Changed:Connect(function()
  459.                 if input.UserInputState == Enum.UserInputState.End then
  460.                     dragging = false
  461.                 end
  462.             end)
  463.         end
  464.     end)
  465.    
  466.     gui.InputChanged:Connect(function(input)
  467.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  468.             dragInput = input
  469.         end
  470.     end)
  471.    
  472.     runService.Heartbeat:Connect(Update)
  473. end
  474. coroutine.wrap(XVBJSYU_fake_script)()
  475. local function EJNZAAO_fake_script() -- Frame.LocalScript
  476.     local script = Instance.new('LocalScript', Frame)
  477.  
  478.     -- Put this inside of a Frame (StarterGui > Your GUI > Frame)
  479.     -- This isn't mine, credits to xenny on youtube.
  480.    
  481.    
  482.     local frame = script.Parent -- path to the frame
  483.     local mouse = game:GetService('Players').LocalPlayer:GetMouse(); -- we need the mouse object, which also has the keyboard
  484.    
  485.     mouse.KeyDown:connect(function(key) -- whenever a key is pushed down
  486.         key = key:lower()
  487.         if key == ',' then -- if key pressed is b
  488.             frame.Visible = not frame.Visible -- flip between visible/invisible
  489.         end
  490.     end)
  491. end
  492. coroutine.wrap(EJNZAAO_fake_script)()
  493. local function CYETH_fake_script() -- TextButton.Close
  494.     local script = Instance.new('LocalScript', TextButton)
  495.  
  496.     script.Parent.MouseButton1Click:Connect(function()
  497.         script.Parent.Parent.Visible = false
  498.     end)
  499.    
  500. end
  501. coroutine.wrap(CYETH_fake_script)()
  502. local function DCUNF_fake_script() -- TextButton.LocalScript
  503.     local script = Instance.new('LocalScript', TextButton)
  504.  
  505.     script.Parent.MouseButton1Click:Connect(function()
  506.         script.Disabled = true
  507.         script.Click:Play()
  508.         wait(0.1)
  509.         script.Disabled = false
  510.     end)
  511.    
  512. end
  513. coroutine.wrap(DCUNF_fake_script)()
  514. local function XOONBH_fake_script() -- TextButton.LocalScript
  515.     local script = Instance.new('LocalScript', TextButton)
  516.  
  517.     script.Parent.MouseEnter:Connect(function()
  518.         script.Parent:TweenSize(UDim2.new(0.03, 49,0, 57),"Out","Quart",.5,true) --
  519.     end)
  520.    
  521.     script.Parent.MouseLeave:Connect(function()
  522.         script.Parent:TweenSize(UDim2.new(0, 49,0, 57),"Out","Quart",.5,true)
  523.     end)
  524.    
  525. end
  526. coroutine.wrap(XOONBH_fake_script)()
  527. local function LRHTAR_fake_script() -- Frame.LocalScript
  528.     local script = Instance.new('LocalScript', Frame)
  529.  
  530.     -- Put this inside of a Frame (StarterGui > Your GUI > Frame)
  531.     -- This isn't mine, credits to xenny on youtube.
  532.    
  533.    
  534.     local frame = script.Parent -- path to the frame
  535.     local mouse = game:GetService('Players').LocalPlayer:GetMouse(); -- we need the mouse object, which also has the keyboard
  536.    
  537.     mouse.KeyDown:connect(function(key) -- whenever a key is pushed down
  538.         key = key:lower()
  539.         if key == ',' then -- if key pressed is b
  540.         script.Disabled = true
  541.         script.Click:Play()
  542.         wait(0.1)
  543.         script.Disabled = false
  544.         end
  545.     end)
  546.    
  547. end
  548. coroutine.wrap(LRHTAR_fake_script)()
  549. local function PIMRUYH_fake_script() -- ScreenGui.SprintScript
  550.     local script = Instance.new('LocalScript', ScreenGui)
  551.  
  552.     local mouse = game.Players.LocalPlayer:GetMouse()
  553.     local running = false
  554.    
  555.     function getTool() 
  556.         for _, kid in ipairs(script.Parent:GetChildren()) do
  557.             if kid.className == "Tool" then return kid end
  558.         end
  559.         return nil
  560.     end
  561.    
  562.    
  563.     mouse.KeyDown:connect(function (key) -- Run function
  564.         key = string.lower(key)
  565.         if string.byte(key) == 48 then
  566.             running = true
  567.             local keyConnection = mouse.KeyUp:connect(function (key)
  568.                 if string.byte(key) == 48 then
  569.                     running = false
  570.                 end
  571.             end)
  572.             for i = 1,5 do
  573.                 game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  574.                 wait()
  575.             end
  576.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35
  577.             repeat wait () until running == false
  578.             keyConnection:disconnect()
  579.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  580.             for i = 1,5 do
  581.                 game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  582.                 wait()
  583.             end
  584.         end
  585.     end)
  586. end
  587. coroutine.wrap(PIMRUYH_fake_script)()
  588.  
Add Comment
Please, Sign In to add comment