MrBooshot712

GET GAMEPASSES FOR FREE [UPDATED MARCH 2023] (NOT PATCHED!)

Aug 20th, 2021 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.98 KB | None | 0 0
  1. note: works on MOST games
  2. --old
  3. game.Players.LocalPlayer.UserId = "1234567890" --put game creator id here
  4.  
  5. --new
  6. -- No mboostme, so that people don't post the script in the comments because they want me to go broke, and because they have no empathy.
  7.  
  8.  
  9.  
  10.  
  11.  
  12. -- No mboostme, so that people don't post the script in the comments because they want me to go broke, and because they have no empathy.
  13.  
  14.  
  15.  
  16.  
  17.  
  18. -- No mboostme, so that people don't post the script in the comments because they want me to go broke, and because they have no empathy.
  19.  
  20.  
  21.  
  22.  
  23.  
  24. -- No mboostme, so that people don't post the script in the comments because they want me to go broke, and because they have no empathy.
  25.  
  26.  
  27.  
  28.  
  29.  
  30. -- No mboostme, so that people don't post the script in the comments because they want me to go broke, and because they have no empathy.
  31.  
  32.  
  33.  
  34.  
  35.  
  36. -- No mboostme, so that people don't post the script in the comments because they want me to go broke, and because they have no empathy.
  37.  
  38.  
  39.  
  40.  
  41.  
  42. -- No mboostme, so that people don't post the script in the comments because they want me to go broke, and because they have no empathy.
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. -- Made By Flaze11
  75. -- Please Subscribe To The Channel If Your Not
  76. -- This Script Will Be Converted To LoadString Very Soon As Its In Beta
  77.  
  78. -- Instances:
  79.  
  80. local ScreenGui = Instance.new("ScreenGui")
  81. local Frame = Instance.new("Frame")
  82. local Background = Instance.new("ImageLabel")
  83. local UICorner = Instance.new("UICorner")
  84. local ImageLabel = Instance.new("ImageLabel")
  85. local UICorner_2 = Instance.new("UICorner")
  86. local ImageLabel_2 = Instance.new("ImageLabel")
  87. local UICorner_3 = Instance.new("UICorner")
  88. local ImageLabel_3 = Instance.new("ImageLabel")
  89. local UICorner_4 = Instance.new("UICorner")
  90. local ImageLabel_4 = Instance.new("ImageLabel")
  91. local UICorner_5 = Instance.new("UICorner")
  92. local ImageLabel_5 = Instance.new("ImageLabel")
  93. local UICorner_6 = Instance.new("UICorner")
  94. local UICorner_7 = Instance.new("UICorner")
  95. local TextLabel = Instance.new("TextLabel")
  96. local UIGradient = Instance.new("UIGradient")
  97. local TextLabel_2 = Instance.new("TextLabel")
  98. local UIGradient_2 = Instance.new("UIGradient")
  99. local SwitchBackground = Instance.new("TextButton")
  100. local Switch = Instance.new("Frame")
  101. local UICorner_8 = Instance.new("UICorner")
  102. local UICorner_9 = Instance.new("UICorner")
  103. local TextLabel_3 = Instance.new("TextLabel")
  104. local UICorner_10 = Instance.new("UICorner")
  105. local SwitchBackground_2 = Instance.new("TextButton")
  106. local Switch_2 = Instance.new("Frame")
  107. local UICorner_11 = Instance.new("UICorner")
  108. local UICorner_12 = Instance.new("UICorner")
  109. local TextLabel_4 = Instance.new("TextLabel")
  110. local UICorner_13 = Instance.new("UICorner")
  111. local TextLabel_5 = Instance.new("TextLabel")
  112. local UIGradient_3 = Instance.new("UIGradient")
  113.  
  114. --Properties:
  115.  
  116. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  117. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  118.  
  119. Frame.Parent = ScreenGui
  120. Frame.BackgroundColor3 = Color3.fromRGB(62, 0, 0)
  121. Frame.Position = UDim2.new(0.281459421, 0, 0.318518519, 0)
  122. Frame.Size = UDim2.new(0, 627, 0, 332)
  123.  
  124. Background.Name = "Background"
  125. Background.Parent = Frame
  126. Background.BackgroundColor3 = Color3.fromRGB(62, 0, 0)
  127. Background.Size = UDim2.new(0, 627, 0, 332)
  128. Background.Image = "rbxassetid://8752340859"
  129. Background.ImageColor3 = Color3.fromRGB(255, 0, 0)
  130. Background.ImageTransparency = 0.500
  131. Background.ScaleType = Enum.ScaleType.Crop
  132.  
  133. UICorner.Parent = Background
  134.  
  135. ImageLabel.Parent = Background
  136. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  137. ImageLabel.Size = UDim2.new(0, 71, 0, 67)
  138. ImageLabel.Image = "http://www.roblox.com/asset/?id=11442644269"
  139. ImageLabel.ImageColor3 = Color3.fromRGB(176, 53, 48)
  140.  
  141. UICorner_2.CornerRadius = UDim.new(1, 9)
  142. UICorner_2.Parent = ImageLabel
  143.  
  144. ImageLabel_2.Parent = Background
  145. ImageLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  146. ImageLabel_2.Position = UDim2.new(0.736842096, 0, 0, 0)
  147. ImageLabel_2.Size = UDim2.new(0, 62, 0, 55)
  148. ImageLabel_2.Image = "rbxassetid://9524079125"
  149.  
  150. UICorner_3.CornerRadius = UDim.new(1, 9)
  151. UICorner_3.Parent = ImageLabel_2
  152.  
  153. ImageLabel_3.Parent = Background
  154. ImageLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  155. ImageLabel_3.Position = UDim2.new(0.835725665, 0, 0, 0)
  156. ImageLabel_3.Size = UDim2.new(0, 53, 0, 55)
  157. ImageLabel_3.Image = "rbxassetid://9288455303"
  158.  
  159. UICorner_4.CornerRadius = UDim.new(1, 9)
  160. UICorner_4.Parent = ImageLabel_3
  161.  
  162. ImageLabel_4.Parent = Background
  163. ImageLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  164. ImageLabel_4.Position = UDim2.new(0.920255184, 0, 0.0150602413, 0)
  165. ImageLabel_4.Size = UDim2.new(0, 43, 0, 44)
  166. ImageLabel_4.Image = "rbxassetid://9184481685"
  167.  
  168. UICorner_5.CornerRadius = UDim.new(1, 9)
  169. UICorner_5.Parent = ImageLabel_4
  170.  
  171. ImageLabel_5.Parent = Background
  172. ImageLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  173. ImageLabel_5.Position = UDim2.new(0.103668272, 0, 1.49011612e-08, 0)
  174. ImageLabel_5.Size = UDim2.new(0, 42, 0, 41)
  175. ImageLabel_5.Image = "rbxassetid://5651963627"
  176. ImageLabel_5.ImageColor3 = Color3.fromRGB(185, 185, 185)
  177.  
  178. UICorner_6.CornerRadius = UDim.new(0, 20)
  179. UICorner_6.Parent = ImageLabel_5
  180.  
  181. UICorner_7.Parent = Frame
  182.  
  183. TextLabel.Parent = Frame
  184. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  185. TextLabel.BackgroundTransparency = 1.000
  186. TextLabel.Position = UDim2.new(0, 0, 0.171686754, 0)
  187. TextLabel.Rotation = -7.000
  188. TextLabel.Size = UDim2.new(0, 152, 0, 50)
  189. TextLabel.Font = Enum.Font.Creepster
  190. TextLabel.Text = "Made by Flaze11"
  191. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  192. TextLabel.TextScaled = true
  193. TextLabel.TextSize = 14.000
  194. TextLabel.TextWrapped = true
  195.  
  196. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.52, Color3.fromRGB(109, 0, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))}
  197. UIGradient.Parent = TextLabel
  198.  
  199. TextLabel_2.Parent = Frame
  200. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  201. TextLabel_2.BackgroundTransparency = 1.000
  202. TextLabel_2.Position = UDim2.new(0.283891559, 0, 0, 0)
  203. TextLabel_2.Size = UDim2.new(0, 270, 0, 69)
  204. TextLabel_2.Font = Enum.Font.Bangers
  205. TextLabel_2.Text = "Free Gamepasses GUI"
  206. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  207. TextLabel_2.TextScaled = true
  208. TextLabel_2.TextSize = 14.000
  209. TextLabel_2.TextWrapped = true
  210.  
  211. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.52, Color3.fromRGB(255, 85, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))}
  212. UIGradient_2.Parent = TextLabel_2
  213.  
  214. SwitchBackground.Name = "SwitchBackground"
  215. SwitchBackground.Parent = Frame
  216. SwitchBackground.BackgroundColor3 = Color3.fromRGB(161, 0, 0)
  217. SwitchBackground.Position = UDim2.new(0.282854825, 0, 0.292771131, 0)
  218. SwitchBackground.Size = UDim2.new(0.10853269, 0, 0.0698795319, 0)
  219. SwitchBackground.Font = Enum.Font.SourceSans
  220. SwitchBackground.Text = ""
  221. SwitchBackground.TextColor3 = Color3.fromRGB(0, 0, 0)
  222. SwitchBackground.TextSize = 14.000
  223.  
  224. Switch.Name = "Switch"
  225. Switch.Parent = SwitchBackground
  226. Switch.AnchorPoint = Vector2.new(0, 0.5)
  227. Switch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  228. Switch.Position = UDim2.new(-0.0106326416, 1, 0.469879508, 0)
  229. Switch.Size = UDim2.new(0.5, -2, 1, -2)
  230.  
  231. UICorner_8.Parent = Switch
  232.  
  233. UICorner_9.Parent = SwitchBackground
  234.  
  235. TextLabel_3.Parent = SwitchBackground
  236. TextLabel_3.BackgroundColor3 = Color3.fromRGB(175, 0, 0)
  237. TextLabel_3.Position = UDim2.new(1.1609112, 0, -0.129310325, 0)
  238. TextLabel_3.Size = UDim2.new(0, 296, 0, 29)
  239. TextLabel_3.Font = Enum.Font.Creepster
  240. TextLabel_3.Text = "<-- Click To Enable Free Gamepasses"
  241. TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0)
  242. TextLabel_3.TextScaled = true
  243. TextLabel_3.TextSize = 14.000
  244. TextLabel_3.TextWrapped = true
  245.  
  246. UICorner_10.Parent = TextLabel_3
  247.  
  248. SwitchBackground_2.Name = "SwitchBackground"
  249. SwitchBackground_2.Parent = Frame
  250. SwitchBackground_2.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  251. SwitchBackground_2.Position = UDim2.new(0.282854825, 0, 0.4403615, 0)
  252. SwitchBackground_2.Size = UDim2.new(0.10853269, 0, 0.0698795319, 0)
  253. SwitchBackground_2.Font = Enum.Font.SourceSans
  254. SwitchBackground_2.Text = ""
  255. SwitchBackground_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  256. SwitchBackground_2.TextSize = 14.000
  257.  
  258. Switch_2.Name = "Switch"
  259. Switch_2.Parent = SwitchBackground_2
  260. Switch_2.AnchorPoint = Vector2.new(0, 0.5)
  261. Switch_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  262. Switch_2.Position = UDim2.new(-0.0106326416, 1, 0.469879508, 0)
  263. Switch_2.Size = UDim2.new(0.5, -2, 1, -2)
  264.  
  265. UICorner_11.Parent = Switch_2
  266.  
  267. UICorner_12.Parent = SwitchBackground_2
  268.  
  269. TextLabel_4.Parent = SwitchBackground_2
  270. TextLabel_4.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  271. TextLabel_4.Position = UDim2.new(1.1609112, 0, -0.129310325, 0)
  272. TextLabel_4.Size = UDim2.new(0, 296, 0, 29)
  273. TextLabel_4.Font = Enum.Font.Creepster
  274. TextLabel_4.Text = "<-- Click to enable Infinite jump"
  275. TextLabel_4.TextColor3 = Color3.fromRGB(0, 0, 0)
  276. TextLabel_4.TextScaled = true
  277. TextLabel_4.TextSize = 14.000
  278. TextLabel_4.TextWrapped = true
  279.  
  280. UICorner_13.Parent = TextLabel_4
  281.  
  282. TextLabel_5.Parent = Frame
  283. TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  284. TextLabel_5.BackgroundTransparency = 1.000
  285. TextLabel_5.Position = UDim2.new(0.135010257, 0, 0.8493976, 0)
  286. TextLabel_5.Size = UDim2.new(0, 467, 0, 50)
  287. TextLabel_5.Font = Enum.Font.Unknown
  288. TextLabel_5.Text = "RESET AFTER ENABLING FREE GAMEPASS"
  289. TextLabel_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  290. TextLabel_5.TextScaled = true
  291. TextLabel_5.TextSize = 14.000
  292. TextLabel_5.TextWrapped = true
  293.  
  294. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.52, Color3.fromRGB(109, 0, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))}
  295. UIGradient_3.Parent = TextLabel_5
  296.  
  297. -- Scripts:
  298.  
  299. local function QXLQ_fake_script() -- SwitchBackground.SwitchScript
  300.     local script = Instance.new('LocalScript', SwitchBackground)
  301.  
  302.     local Toggled = false
  303.     local Frame = script.Parent:FindFirstChild("Switch")
  304.  
  305.     script.Parent.MouseButton1Click:Connect(function()
  306.  
  307.         if Toggled == false then
  308.             Toggled = true
  309.             Frame:TweenPosition(UDim2.new(0.5, 1, 0.5, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1)
  310.         elseif Toggled == true then
  311.             Toggled = false
  312.             Frame:TweenPosition(UDim2.new(0, 1, 0.5, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1)
  313.  
  314.  
  315.         end
  316.     end)
  317. end
  318. coroutine.wrap(QXLQ_fake_script)()
  319. local function QDJMGZT_fake_script() -- SwitchBackground.LocalScript
  320.     local script = Instance.new('LocalScript', SwitchBackground)
  321.  
  322.     function PlaySound()
  323.         script.Parent.Sound:Play()
  324.         end
  325.         script.Parent.MouseButton1Click:connect(PlaySound)
  326.  
  327.  
  328. end
  329. coroutine.wrap(QDJMGZT_fake_script)()
  330. local function HKXHODI_fake_script() -- nil.READ ME PLEASE!
  331.     local script = Instance.new('Script', nil)
  332.  
  333.     --Please read this before using it--
  334.     --Move this model to StarterGui--
  335.     --In sound, you can change the sound, whichever you want--
  336.     --Finally, click to play and click the button to play the sound and you will get your result :D--
  337.     --Don't delete LocalScript--
  338.     --Have fun :D--
  339.  
  340. end
  341. coroutine.wrap(HKXHODI_fake_script)()
  342. local function UTBYAFV_fake_script() -- SwitchBackground.LocalScript
  343.     local script = Instance.new('LocalScript', SwitchBackground)
  344.  
  345.     function PlaySound()
  346.         script.Parent.Sound2:Play()
  347.         end
  348.         script.Parent.MouseButton1Click:connect(PlaySound)
  349.  
  350.  
  351. end
  352. coroutine.wrap(UTBYAFV_fake_script)()
  353. local function WIHGV_fake_script() -- nil.READ ME PLEASE!
  354.     local script = Instance.new('Script', nil)
  355.  
  356.     --Please read this before using it--
  357.     --Move this model to StarterGui--
  358.     --In sound, you can change the sound, whichever you want--
  359.     --Finally, click to play and click the button to play the sound and you will get your result :D--
  360.     --Don't delete LocalScript--
  361.     --Have fun :D--
  362.  
  363. end
  364. coroutine.wrap(WIHGV_fake_script)()
  365. local function WVKVQ_fake_script() -- SwitchBackground.LocalScript
  366.     local script = Instance.new('LocalScript', SwitchBackground)
  367.  
  368.     script.Parent.MouseButton1Click:Connect(function()
  369.         local data = {
  370.  
  371.             Title = "Access Granted.";
  372.             Text = "Thank you for Executing Flaze11 Free Gamepass GUI!'.";
  373.             Duration = 5;
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.         }
  384.  
  385.  
  386.  
  387.         game.StarterGui:SetCore("SendNotification", data)
  388.         wait(5) script.Parent.Disabled = true
  389.     end)
  390. end
  391. coroutine.wrap(WVKVQ_fake_script)()
  392. local function EBDG_fake_script() -- SwitchBackground.LocalScript
  393.     local script = Instance.new('LocalScript', SwitchBackground)
  394.  
  395.     script.Parent.MouseButton1Click:Connect(function()
  396.         if game.CreatorType == Enum.CreatorType.User then
  397.             game.Players.LocalPlayer.UserId = game.CreatorId
  398.         end
  399.         if game.CreatorType == Enum.CreatorType.Group then
  400.             game.Players.LocalPlayer.UserId = game:GetService("GroupService"):GetGroupInfoAsync(game.CreatorId).Owner.Id
  401.         end
  402.         end)
  403.  
  404. end
  405. coroutine.wrap(EBDG_fake_script)()
  406. local function WNGTYNL_fake_script() -- SwitchBackground_2.SwitchScript
  407.     local script = Instance.new('LocalScript', SwitchBackground_2)
  408.  
  409.     local Toggled = false
  410.     local Frame = script.Parent:FindFirstChild("Switch")
  411.  
  412.     script.Parent.MouseButton1Click:Connect(function()
  413.  
  414.         if Toggled == false then
  415.             Toggled = true
  416.             Frame:TweenPosition(UDim2.new(0.5, 1, 0.5, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1)
  417.         elseif Toggled == true then
  418.             Toggled = false
  419.             Frame:TweenPosition(UDim2.new(0, 1, 0.5, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1)
  420.  
  421.  
  422.         end
  423.     end)
  424. end
  425. coroutine.wrap(WNGTYNL_fake_script)()
  426. local function OMOBYOH_fake_script() -- SwitchBackground_2.LocalScript
  427.     local script = Instance.new('LocalScript', SwitchBackground_2)
  428.  
  429.     function PlaySound()
  430.         script.Parent.Sound:Play()
  431.         end
  432.         script.Parent.MouseButton1Click:connect(PlaySound)
  433.  
  434.  
  435. end
  436. coroutine.wrap(OMOBYOH_fake_script)()
  437. local function TBIHN_fake_script() -- nil.READ ME PLEASE!
  438.     local script = Instance.new('Script', nil)
  439.  
  440.     --Please read this before using it--
  441.     --Move this model to StarterGui--
  442.     --In sound, you can change the sound, whichever you want--
  443.     --Finally, click to play and click the button to play the sound and you will get your result :D--
  444.     --Don't delete LocalScript--
  445.     --Have fun :D--
  446.  
  447. end
  448. coroutine.wrap(TBIHN_fake_script)()
  449. local function TMDOH_fake_script() -- SwitchBackground_2.LocalScript
  450.     local script = Instance.new('LocalScript', SwitchBackground_2)
  451.  
  452.     function PlaySound()
  453.         script.Parent.Sound2:Play()
  454.         end
  455.         script.Parent.MouseButton1Click:connect(PlaySound)
  456.  
  457.  
  458. end
  459. coroutine.wrap(TMDOH_fake_script)()
  460. local function UBFW_fake_script() -- nil.READ ME PLEASE!
  461.     local script = Instance.new('Script', nil)
  462.  
  463.     --Please read this before using it--
  464.     --Move this model to StarterGui--
  465.     --In sound, you can change the sound, whichever you want--
  466.     --Finally, click to play and click the button to play the sound and you will get your result :D--
  467.     --Don't delete LocalScript--
  468.     --Have fun :D--
  469.  
  470. end
  471. coroutine.wrap(UBFW_fake_script)()
  472. local function ENDVDH_fake_script() -- SwitchBackground_2.Script
  473.     local script = Instance.new('LocalScript', SwitchBackground_2)
  474.  
  475.     --By NightRoverInfo99--
  476.     script.Parent.MouseButton1Click:Connect(function()
  477.         local InfiniteJumpEnabled = true
  478.         game:GetService("UserInputService").JumpRequest:connect(function()
  479.             if InfiniteJumpEnabled then
  480.                 game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  481.             end
  482.         end)
  483.         local InfiniteJump = CreateButton("Infinite Jump: Off", StuffFrame)
  484.         InfiniteJump.Position = UDim2.new(0,10,0,130)
  485.         InfiniteJump.Size = UDim2.new(0,150,0,30)
  486.         InfiniteJump.MouseButton1Click:connect(function()
  487.             local state = InfiniteJump.Text:sub(string.len("Infinite Jump: ") + 1)
  488.             local new = state == "Off" and "On" or state == "On" and "Off"
  489.             InfiniteJumpEnabled = new == "On"
  490.             InfiniteJump.Text = "Infinite Jump: " .. new
  491.         end)
  492.     end)
  493. end
  494. coroutine.wrap(ENDVDH_fake_script)()
  495. local function IGFYUIK_fake_script() -- Frame.Smooth GUI Dragging
  496.     local script = Instance.new('LocalScript', Frame)
  497.  
  498.     local UserInputService = game:GetService("UserInputService")
  499.     local runService = (game:GetService("RunService"));
  500.  
  501.     local gui = script.Parent
  502.  
  503.     local dragging
  504.     local dragInput
  505.     local dragStart
  506.     local startPos
  507.  
  508.     function Lerp(a, b, m)
  509.         return a + (b - a) * m
  510.     end;
  511.  
  512.     local lastMousePos
  513.     local lastGoalPos
  514.     local DRAG_SPEED = (8); -- // The speed of the UI darg.
  515.     function Update(dt)
  516.         if not (startPos) then return end;
  517.         if not (dragging) and (lastGoalPos) then
  518.             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))
  519.             return
  520.         end;
  521.  
  522.         local delta = (lastMousePos - UserInputService:GetMouseLocation())
  523.         local xGoal = (startPos.X.Offset - delta.X);
  524.         local yGoal = (startPos.Y.Offset - delta.Y);
  525.         lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  526.         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))
  527.     end;
  528.  
  529.     gui.InputBegan:Connect(function(input)
  530.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  531.             dragging = true
  532.             dragStart = input.Position
  533.             startPos = gui.Position
  534.             lastMousePos = UserInputService:GetMouseLocation()
  535.  
  536.             input.Changed:Connect(function()
  537.                 if input.UserInputState == Enum.UserInputState.End then
  538.                     dragging = false
  539.                 end
  540.             end)
  541.         end
  542.     end)
  543.  
  544.     gui.InputChanged:Connect(function(input)
  545.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  546.             dragInput = input
  547.         end
  548.     end)
  549.  
  550.     runService.Heartbeat:Connect(Update)
  551. end
  552. coroutine.wrap(IGFYUIK_fake_script)()
Add Comment
Please, Sign In to add comment