Advertisement
YTMarvinxx

Untitled

May 12th, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.24 KB | None | 0 0
  1. local GUI = Instance.new("ScreenGui")
  2. local LoginFrame = Instance.new("Frame")
  3. local bar1 = Instance.new("Frame")
  4. local bar2 = Instance.new("Frame")
  5. local Closegui = Instance.new("TextButton")
  6. local userbox = Instance.new("TextBox")
  7. local passbox = Instance.new("TextBox")
  8. local title = Instance.new("TextLabel")
  9. local submit = Instance.new("TextButton")
  10. local sgui = Instance.new("Frame")
  11. local sbar2 = Instance.new("Frame")
  12. local sbar1 = Instance.new("Frame")
  13. local exitgui = Instance.new("TextButton")
  14. local minigui = Instance.new("TextButton")
  15. local nextpage1 = Instance.new("TextButton")
  16. local JailbraikGUI = Instance.new("TextButton")
  17. local GUIJailbraik = Instance.new("Frame")
  18. local GUIJailbraik1 = Instance.new("TextButton")
  19. local NinjaLegendsGUI = Instance.new("TextButton")
  20. local GUINinjaLegends = Instance.new("Frame")
  21. local GUINinjaLegends1 = Instance.new("TextButton")
  22. local AntiAFK = Instance.new("TextButton")
  23. local FishingSimulatorGUI = Instance.new("TextButton")
  24. local GUIAntiAFK = Instance.new("Frame")
  25. local AntiAFKScript = Instance.new("TextButton")
  26. local GUIFishingSimulator = Instance.new("Frame")
  27. local GUIFishingSimulator1 = Instance.new("TextButton")
  28. local Menu = Instance.new("Frame")
  29. local menubut = Instance.new("TextButton")
  30.  
  31. --Properties:
  32.  
  33. GUI.Name = "GUI"
  34. GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  35. GUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  36.  
  37. LoginFrame.Name = "LoginFrame"
  38. LoginFrame.Parent = GUI
  39. LoginFrame.Active = true
  40. LoginFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  41. LoginFrame.BorderSizePixel = 0
  42. LoginFrame.Position = UDim2.new(0.396668732, 0, 0.29706201, 0)
  43. LoginFrame.Selectable = true
  44. LoginFrame.Size = UDim2.new(0, 334, 0, 373)
  45. LoginFrame.Style = Enum.FrameStyle.RobloxRound
  46. LoginFrame.Visible = true
  47.  
  48. bar1.Name = "bar1"
  49. bar1.Parent = LoginFrame
  50. bar1.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  51. bar1.BorderSizePixel = 0
  52. bar1.Position = UDim2.new(-0.0245628133, 0, -0.0222131163, 0)
  53. bar1.Size = UDim2.new(0, 334, 0, 31)
  54.  
  55. bar2.Name = "bar2"
  56. bar2.Parent = LoginFrame
  57. bar2.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  58. bar2.BorderSizePixel = 0
  59. bar2.Position = UDim2.new(-0.0245628133, 0, 0.0640271902, 0)
  60. bar2.Size = UDim2.new(0, 333, 0, 7)
  61.  
  62. Closegui.Name = "Close gui"
  63. Closegui.Parent = LoginFrame
  64. Closegui.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  65. Closegui.BorderSizePixel = 0
  66. Closegui.Position = UDim2.new(0.91282022, 0, -0.0222131163, 0)
  67. Closegui.Size = UDim2.new(0, 34, 0, 30)
  68. Closegui.Font = Enum.Font.SourceSans
  69. Closegui.Text = "X"
  70. Closegui.TextColor3 = Color3.fromRGB(255, 255, 255)
  71. Closegui.TextSize = 23.000
  72. Closegui.MouseButton1Down:connect(function()
  73. GUI:Destroy()
  74. end)
  75.  
  76. userbox.Name = "userbox"
  77. userbox.Parent = LoginFrame
  78. userbox.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  79. userbox.BorderColor3 = Color3.fromRGB(10, 10, 10)
  80. userbox.BorderSizePixel = 4
  81. userbox.Position = UDim2.new(0.183154628, 0, 0.428983212, 0)
  82. userbox.Size = UDim2.new(0, 200, 0, 28)
  83. userbox.Font = Enum.Font.SourceSansBold
  84. userbox.Text = "Username"
  85. userbox.TextColor3 = Color3.fromRGB(255, 255, 255)
  86. userbox.TextScaled = true
  87. userbox.TextSize = 14.000
  88. userbox.TextWrapped = true
  89.  
  90. passbox.Name = "passbox"
  91. passbox.Parent = LoginFrame
  92. passbox.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  93. passbox.BorderColor3 = Color3.fromRGB(10, 10, 10)
  94. passbox.BorderSizePixel = 4
  95. passbox.Position = UDim2.new(0.183154628, 0, 0.568393409, 0)
  96. passbox.Size = UDim2.new(0, 200, 0, 28)
  97. passbox.Font = Enum.Font.SourceSansBold
  98. passbox.Text = "Password"
  99. passbox.TextColor3 = Color3.fromRGB(255, 255, 255)
  100. passbox.TextScaled = true
  101. passbox.TextSize = 14.000
  102. passbox.TextWrapped = true
  103.  
  104. title.Name = "title"
  105. title.Parent = LoginFrame
  106. title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  107. title.BorderSizePixel = 0
  108. title.Position = UDim2.new(0.185628742, 0, 0.150134042, 0)
  109. title.Size = UDim2.new(0, 200, 0, 50)
  110. title.SizeConstraint = Enum.SizeConstraint.RelativeYY
  111. title.Font = Enum.Font.SourceSansBold
  112. title.Text = "Login GUI"
  113. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  114. title.TextScaled = true
  115. title.TextSize = 14.000
  116. title.TextWrapped = true
  117.  
  118. submit.Name = "submit"
  119. submit.Parent = LoginFrame
  120. submit.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  121. submit.BorderColor3 = Color3.fromRGB(10, 10, 10)
  122. submit.BorderSizePixel = 4
  123. submit.Position = UDim2.new(0.278674841, 0, 0.750183702, 0)
  124. submit.Size = UDim2.new(0, 142, 0, 35)
  125. submit.Font = Enum.Font.SourceSansBold
  126. submit.Text = "Login"
  127. submit.TextColor3 = Color3.fromRGB(255, 255, 255)
  128. submit.TextScaled = true
  129. submit.TextSize = 14.000
  130. submit.TextWrapped = true
  131.  
  132. submit.MouseButton1Down:connect(function()
  133. if userbox.Text == "Admin" and passbox.Text == "123" then
  134. LoginFrame.Visible = false
  135. sgui.Visible = true
  136. end
  137. end)
  138.  
  139. sgui.Name = "sgui"
  140. sgui.Parent = GUI
  141. sgui.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  142. sgui.BorderSizePixel = 0
  143. sgui.Position = UDim2.new(0.288093746, 0, 0.262241572, 0)
  144. sgui.Size = UDim2.new(0, 686, 0, 357)
  145. sgui.Visible = false
  146. sgui.Style = Enum.FrameStyle.RobloxSquare
  147.  
  148. sbar2.Name = "sbar2"
  149. sbar2.Parent = sgui
  150. sbar2.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  151. sbar2.BorderSizePixel = 0
  152. sbar2.Position = UDim2.new(-0.011661808, 0, 0.0663866773, 0)
  153. sbar2.Size = UDim2.new(0, 689, 0, 7)
  154.  
  155. sbar1.Name = "sbar1"
  156. sbar1.Parent = sgui
  157. sbar1.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  158. sbar1.BorderSizePixel = 0
  159. sbar1.Position = UDim2.new(-0.0128475446, 0, -0.0245895609, 0)
  160. sbar1.Size = UDim2.new(0, 686, 0, 31)
  161.  
  162. exitgui.Name = "exitgui"
  163. exitgui.Parent = sgui
  164. exitgui.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  165. exitgui.BorderSizePixel = 0
  166. exitgui.Position = UDim2.new(0.95800972, 0, -0.0222131163, 0)
  167. exitgui.Size = UDim2.new(0, 34, 0, 30)
  168. exitgui.Font = Enum.Font.SourceSans
  169. exitgui.Text = "X"
  170. exitgui.TextColor3 = Color3.fromRGB(255, 255, 255)
  171. exitgui.TextSize = 23.000
  172. exitgui.MouseButton1Down:connect(function()
  173. GUI:Destroy()
  174. end)
  175.  
  176. minigui.Name = "minigui"
  177. minigui.Parent = sgui
  178. minigui.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  179. minigui.BorderSizePixel = 0
  180. minigui.Position = UDim2.new(0.908447027, 0, -0.0222131163, 0)
  181. minigui.Size = UDim2.new(0, 34, 0, 30)
  182. minigui.Font = Enum.Font.SourceSans
  183. minigui.Text = "-"
  184. minigui.TextColor3 = Color3.fromRGB(255, 255, 255)
  185. minigui.TextSize = 23.000
  186. minigui.MouseButton1Down:connect(function()
  187. sgui.Visible = false
  188. Menu.Visible = true
  189. end)
  190.  
  191. nextpage1.Name = "nextpage1"
  192. nextpage1.Parent = sgui
  193. nextpage1.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  194. nextpage1.BorderColor3 = Color3.fromRGB(10, 10, 10)
  195. nextpage1.BorderSizePixel = 0
  196. nextpage1.Position = UDim2.new(0.94293201, 0, 0.129432142, 0)
  197. nextpage1.Size = UDim2.new(0, 44, 0, 50)
  198. nextpage1.Font = Enum.Font.SourceSansBold
  199. nextpage1.Text = ">"
  200. nextpage1.TextColor3 = Color3.fromRGB(255, 255, 255)
  201. nextpage1.TextScaled = true
  202. nextpage1.TextSize = 14.000
  203. nextpage1.TextWrapped = true
  204.  
  205. JailbraikGUI.Name = "JailbraikGUI"
  206. JailbraikGUI.Parent = sgui
  207. JailbraikGUI.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  208. JailbraikGUI.BorderColor3 = Color3.fromRGB(10, 10, 10)
  209. JailbraikGUI.BorderSizePixel = 2
  210. JailbraikGUI.Position = UDim2.new(0.00705062831, 0, 0.128930017, 0)
  211. JailbraikGUI.Size = UDim2.new(0, 135, 0, 50)
  212. JailbraikGUI.Font = Enum.Font.SourceSansBold
  213. JailbraikGUI.Text = "JailBraik"
  214. JailbraikGUI.TextColor3 = Color3.fromRGB(255, 255, 255)
  215. JailbraikGUI.TextScaled = true
  216. JailbraikGUI.TextSize = 14.000
  217. JailbraikGUI.TextWrapped = true
  218. JailbraikGUI.MouseButton1Down:connect(function()
  219. GUIJailbraik.Visible = true
  220. GUINinjaLegends.Visible = false
  221. GUIFishingSimulator.Visible = false
  222. GUIAntiAFK.Visible = false
  223. end)
  224.  
  225. GUIJailbraik.Name = "GUIJailbraik"
  226. GUIJailbraik.Parent = sgui
  227. GUIJailbraik.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  228. GUIJailbraik.BorderColor3 = Color3.fromRGB(10, 10, 10)
  229. GUIJailbraik.BorderSizePixel = 2
  230. GUIJailbraik.Position = UDim2.new(0.300508291, 0, 0.529560864, 0)
  231. GUIJailbraik.Size = UDim2.new(0, 237, 0, 60)
  232. GUIJailbraik.Visible = false
  233.  
  234. GUIJailbraik1.Name = "GUIJailbraik1"
  235. GUIJailbraik1.Parent = GUIJailbraik
  236. GUIJailbraik1.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  237. GUIJailbraik1.BorderColor3 = Color3.fromRGB(10, 10, 10)
  238. GUIJailbraik1.BorderSizePixel = 2
  239. GUIJailbraik1.Size = UDim2.new(0, 237, 0, 60)
  240. GUIJailbraik1.Font = Enum.Font.SourceSansBold
  241. GUIJailbraik1.Text = "Jailbraik GUI"
  242. GUIJailbraik1.TextColor3 = Color3.fromRGB(255, 255, 255)
  243. GUIJailbraik1.TextScaled = true
  244. GUIJailbraik1.TextSize = 14.000
  245. GUIJailbraik1.TextWrapped = true
  246. GUIJailbraik1.MouseButton1Down:connect(function()
  247. loadstring(game:HttpGet("https://pastebin.com/raw/yCrBkPaY",true))()
  248. end)
  249.  
  250. NinjaLegendsGUI.Name = "Ninja LegendsGUI"
  251. NinjaLegendsGUI.Parent = sgui
  252. NinjaLegendsGUI.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  253. NinjaLegendsGUI.BorderColor3 = Color3.fromRGB(10, 10, 10)
  254. NinjaLegendsGUI.BorderSizePixel = 2
  255. NinjaLegendsGUI.Position = UDim2.new(0.243202254, 0, 0.128930017, 0)
  256. NinjaLegendsGUI.Size = UDim2.new(0, 135, 0, 50)
  257. NinjaLegendsGUI.Font = Enum.Font.SourceSansBold
  258. NinjaLegendsGUI.Text = "Ninja Legends"
  259. NinjaLegendsGUI.TextColor3 = Color3.fromRGB(255, 255, 255)
  260. NinjaLegendsGUI.TextScaled = true
  261. NinjaLegendsGUI.TextSize = 14.000
  262. NinjaLegendsGUI.TextWrapped = true
  263. NinjaLegendsGUI.MouseButton1Down:connect(function()
  264. GUIJailbraik.Visible = false
  265. GUINinjaLegends.Visible = true
  266. GUIFishingSimulator.Visible = false
  267. GUIAntiAFK.Visible = false
  268. end)
  269.  
  270. GUINinjaLegends.Name = "GUINinja Legends"
  271. GUINinjaLegends.Parent = sgui
  272. GUINinjaLegends.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  273. GUINinjaLegends.BorderColor3 = Color3.fromRGB(10, 10, 10)
  274. GUINinjaLegends.BorderSizePixel = 2
  275. GUINinjaLegends.Position = UDim2.new(0.300508291, 0, 0.529560864, 0)
  276. GUINinjaLegends.Size = UDim2.new(0, 237, 0, 60)
  277. GUINinjaLegends.Visible = false
  278.  
  279. GUINinjaLegends1.Name = "GUINinja Legends1"
  280. GUINinjaLegends1.Parent = GUINinjaLegends
  281. GUINinjaLegends1.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  282. GUINinjaLegends1.BorderColor3 = Color3.fromRGB(10, 10, 10)
  283. GUINinjaLegends1.BorderSizePixel = 2
  284. GUINinjaLegends1.Size = UDim2.new(0, 237, 0, 60)
  285. GUINinjaLegends1.Font = Enum.Font.SourceSansBold
  286. GUINinjaLegends1.Text = "Ninja Legends GUI"
  287. GUINinjaLegends1.TextColor3 = Color3.fromRGB(255, 255, 255)
  288. GUINinjaLegends1.TextScaled = true
  289. GUINinjaLegends1.TextSize = 14.000
  290. GUINinjaLegends1.TextWrapped = true
  291. GUINinjaLegends1.MouseButton1Down:connect(function()
  292. loadstring(game:HttpGet("https://pastebin.com/raw/vcNkhR91",true))()
  293. end)
  294.  
  295.  
  296. AntiAFK.Name = "Anti AFK "
  297. AntiAFK.Parent = sgui
  298. AntiAFK.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  299. AntiAFK.BorderColor3 = Color3.fromRGB(10, 10, 10)
  300. AntiAFK.BorderSizePixel = 2
  301. AntiAFK.Position = UDim2.new(0.73008275, 0, 0.128930017, 0)
  302. AntiAFK.Size = UDim2.new(0, 135, 0, 50)
  303. AntiAFK.Font = Enum.Font.SourceSansBold
  304. AntiAFK.Text = "Anti AFK "
  305. AntiAFK.TextColor3 = Color3.fromRGB(255, 255, 255)
  306. AntiAFK.TextScaled = true
  307. AntiAFK.TextSize = 14.000
  308. AntiAFK.TextWrapped = true
  309. AntiAFK.MouseButton1Down:connect(function()
  310. GUIJailbraik.Visible = false
  311. GUINinjaLegends.Visible = false
  312. GUIFishingSimulator.Visible = false
  313. GUIAntiAFK.Visible = true
  314. end)
  315.  
  316. FishingSimulatorGUI.Name = "Fishing SimulatorGUI"
  317. FishingSimulatorGUI.Parent = sgui
  318. FishingSimulatorGUI.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  319. FishingSimulatorGUI.BorderColor3 = Color3.fromRGB(10, 10, 10)
  320. FishingSimulatorGUI.BorderSizePixel = 2
  321. FishingSimulatorGUI.Position = UDim2.new(0.483727038, 0, 0.128930017, 0)
  322. FishingSimulatorGUI.Size = UDim2.new(0, 135, 0, 50)
  323. FishingSimulatorGUI.Font = Enum.Font.SourceSansBold
  324. FishingSimulatorGUI.Text = "Fishing Simulator "
  325. FishingSimulatorGUI.TextColor3 = Color3.fromRGB(255, 255, 255)
  326. FishingSimulatorGUI.TextScaled = true
  327. FishingSimulatorGUI.TextSize = 14.000
  328. FishingSimulatorGUI.TextWrapped = true
  329. FishingSimulatorGUI.MouseButton1Down:connect(function()
  330. GUIJailbraik.Visible = false
  331. GUINinjaLegends.Visible = false
  332. GUIFishingSimulator.Visible = true
  333. GUIAntiAFK.Visible = false
  334. end)
  335.  
  336. GUIAntiAFK.Name = "GUIAnti AFK"
  337. GUIAntiAFK.Parent = sgui
  338. GUIAntiAFK.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  339. GUIAntiAFK.BorderColor3 = Color3.fromRGB(10, 10, 10)
  340. GUIAntiAFK.BorderSizePixel = 2
  341. GUIAntiAFK.Position = UDim2.new(0.300508291, 0, 0.529560864, 0)
  342. GUIAntiAFK.Size = UDim2.new(0, 237, 0, 60)
  343. GUIAntiAFK.Visible = false
  344.  
  345. AntiAFKScript.Name = "Anti AFK Script"
  346. AntiAFKScript.Parent = GUIAntiAFK
  347. AntiAFKScript.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  348. AntiAFKScript.BorderColor3 = Color3.fromRGB(10, 10, 10)
  349. AntiAFKScript.BorderSizePixel = 2
  350. AntiAFKScript.Size = UDim2.new(0, 237, 0, 60)
  351. AntiAFKScript.Font = Enum.Font.SourceSansBold
  352. AntiAFKScript.Text = "Anti AFK "
  353. AntiAFKScript.TextColor3 = Color3.fromRGB(255, 255, 255)
  354. AntiAFKScript.TextScaled = true
  355. AntiAFKScript.TextSize = 14.000
  356. AntiAFKScript.TextWrapped = true
  357. AntiAFKScript.MouseButton1Down:connect(function()
  358. loadstring(game:HttpGet("https://pastebin.com/raw/SLpM0f3z",true))()
  359. end)
  360.  
  361. GUIFishingSimulator.Name = "GUIFishing Simulator"
  362. GUIFishingSimulator.Parent = sgui
  363. GUIFishingSimulator.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  364. GUIFishingSimulator.BorderColor3 = Color3.fromRGB(10, 10, 10)
  365. GUIFishingSimulator.BorderSizePixel = 2
  366. GUIFishingSimulator.Position = UDim2.new(0.300508291, 0, 0.529560864, 0)
  367. GUIFishingSimulator.Size = UDim2.new(0, 237, 0, 60)
  368. GUIFishingSimulator.Visible = false
  369.  
  370. GUIFishingSimulator1.Name = "GUIFishing Simulator1"
  371. GUIFishingSimulator1.Parent = GUIFishingSimulator
  372. GUIFishingSimulator1.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  373. GUIFishingSimulator1.BorderColor3 = Color3.fromRGB(10, 10, 10)
  374. GUIFishingSimulator1.BorderSizePixel = 2
  375. GUIFishingSimulator1.Size = UDim2.new(0, 237, 0, 60)
  376. GUIFishingSimulator1.Font = Enum.Font.SourceSansBold
  377. GUIFishingSimulator1.Text = "Fishing Simulator GUI"
  378. GUIFishingSimulator1.TextColor3 = Color3.fromRGB(255, 255, 255)
  379. GUIFishingSimulator1.TextScaled = true
  380. GUIFishingSimulator1.TextSize = 14.000
  381. GUIFishingSimulator1.TextWrapped = true
  382. GUIFishingSimulator1.MouseButton1Down:connect(function()
  383. loadstring(game:HttpGet("https://pastebin.com/raw/5r2kwfzn",true))()
  384. end)
  385.  
  386. Menu.Name = "Menu"
  387. Menu.Parent = GUI
  388. Menu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  389. Menu.Position = UDim2.new(0, 0, 0.548422217, 0)
  390. Menu.Size = UDim2.new(0, 78, 0, 42)
  391. Menu.Visible = false
  392.  
  393. menubut.Name = "menubut"
  394. menubut.Parent = Menu
  395. menubut.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  396. menubut.BorderColor3 = Color3.fromRGB(10, 10, 10)
  397. menubut.BorderSizePixel = 4
  398. menubut.Size = UDim2.new(0, 78, 0, 42)
  399. menubut.Font = Enum.Font.SourceSansBold
  400. menubut.Text = "Menu"
  401. menubut.TextColor3 = Color3.fromRGB(255, 255, 255)
  402. menubut.TextScaled = true
  403. menubut.TextSize = 14.000
  404. menubut.TextWrapped = true
  405. menubut.MouseButton1Down:connect(function()
  406. Menu.Visible = false
  407. sgui.Visible = true
  408. end)
  409.  
  410. -- Scripts:
  411.  
  412. local function TMFD_fake_script() -- LoginFrame.lguidrag
  413. local script = Instance.new('LocalScript', LoginFrame)
  414.  
  415. local UIS = game:GetService('UserInputService')
  416. local frame = script.Parent
  417. local dragToggle = nil
  418. local dragSpeed = 0.25
  419. local dragStart = nil
  420. local startPos = nil
  421.  
  422. local function updateInput(input)
  423. local delta = input.Position - dragStart
  424. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  425. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  426. game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  427. end
  428.  
  429. frame.InputBegan:Connect(function(input)
  430. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  431. dragToggle = true
  432. dragStart = input.Position
  433. startPos = frame.Position
  434. input.Changed:Connect(function()
  435. if input.UserInputState == Enum.UserInputState.End then
  436. dragToggle = false
  437. end
  438. end)
  439. end
  440. end)
  441.  
  442. UIS.InputChanged:Connect(function(input)
  443. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  444. if dragToggle then
  445. updateInput(input)
  446. end
  447. end
  448. end)
  449. end
  450. coroutine.wrap(TMFD_fake_script)()
  451. local function PTZTQT_fake_script() -- sgui.sguidrag
  452. local script = Instance.new('LocalScript', sgui)
  453.  
  454. local UIS = game:GetService('UserInputService')
  455. local frame = script.Parent
  456. local dragToggle = nil
  457. local dragSpeed = 0.25
  458. local dragStart = nil
  459. local startPos = nil
  460.  
  461. local function updateInput(input)
  462. local delta = input.Position - dragStart
  463. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  464. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  465. game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  466. end
  467.  
  468. frame.InputBegan:Connect(function(input)
  469. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  470. dragToggle = true
  471. dragStart = input.Position
  472. startPos = frame.Position
  473. input.Changed:Connect(function()
  474. if input.UserInputState == Enum.UserInputState.End then
  475. dragToggle = false
  476. end
  477. end)
  478. end
  479. end)
  480.  
  481. UIS.InputChanged:Connect(function(input)
  482. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  483. if dragToggle then
  484. updateInput(input)
  485. end
  486. end
  487. end)
  488. end
  489. coroutine.wrap(PTZTQT_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement