Advertisement
DhantMods

ROBLOX | Greenwood Town | GUI

Aug 18th, 2020
2,222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.37 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local CmdBar = Instance.new("Frame")
  3. local Line = Instance.new("Frame")
  4. local UICreator = Instance.new("TextLabel")
  5. local Prefix = Instance.new("TextLabel")
  6. local Command = Instance.new("TextBox")
  7. local Cmds = Instance.new("Frame")
  8. local Cmd = Instance.new("TextLabel")
  9. local UIListLayout = Instance.new("UIListLayout")
  10. local Cmd_2 = Instance.new("TextLabel")
  11. local Cmd_3 = Instance.new("TextLabel")
  12. local Cmd_4 = Instance.new("TextLabel")
  13. local Cmd_5 = Instance.new("TextLabel")
  14. local Cmd_6 = Instance.new("TextLabel")
  15.  
  16. ScreenGui.Parent = game.CoreGui
  17.  
  18. CmdBar.Name = "CmdBar"
  19. CmdBar.Parent = ScreenGui
  20. CmdBar.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  21. CmdBar.BorderSizePixel = 0
  22. CmdBar.Position = UDim2.new(0.0540000014, 0, 1.5, 0)
  23. CmdBar.Size = UDim2.new(0, 684, 0, 33)
  24.  
  25. Line.Name = "Line"
  26. Line.Parent = CmdBar
  27. Line.BackgroundColor3 = Color3.new(0.572549, 1, 0.305882)
  28. Line.BorderSizePixel = 0
  29. Line.Position = UDim2.new(0, 0, 1, 0)
  30. Line.Size = UDim2.new(0, 684, 0, 2)
  31.  
  32. UICreator.Name = "UICreator"
  33. UICreator.Parent = CmdBar
  34. UICreator.BackgroundColor3 = Color3.new(1, 1, 1)
  35. UICreator.BackgroundTransparency = 1
  36. UICreator.BorderSizePixel = 0
  37. UICreator.Position = UDim2.new(0, 0, -0.636363626, 0)
  38. UICreator.Size = UDim2.new(0, 200, 0, 15)
  39. UICreator.Font = Enum.Font.SourceSans
  40. UICreator.Text = "UI Made by dot666isgud"
  41. UICreator.TextColor3 = Color3.new(1, 1, 1)
  42. UICreator.TextSize = 21
  43. UICreator.TextWrapped = true
  44.  
  45. Prefix.Name = "Prefix"
  46. Prefix.Parent = CmdBar
  47. Prefix.BackgroundColor3 = Color3.new(1, 1, 1)
  48. Prefix.BackgroundTransparency = 1
  49. Prefix.BorderSizePixel = 0
  50. Prefix.Position = UDim2.new(0, 0, 0.0909090936, 0)
  51. Prefix.Size = UDim2.new(-0.0248538014, 48, 0.787878811, 0)
  52. Prefix.Font = Enum.Font.SourceSans
  53. Prefix.Text = ";"
  54. Prefix.TextColor3 = Color3.new(0.709804, 0.709804, 0.709804)
  55. Prefix.TextScaled = true
  56. Prefix.TextSize = 14
  57. Prefix.TextWrapped = true
  58.  
  59. Command.Name = "Command"
  60. Command.Parent = CmdBar
  61. Command.BackgroundColor3 = Color3.new(1, 1, 1)
  62. Command.BackgroundTransparency = 1
  63. Command.BorderSizePixel = 0
  64. Command.Position = UDim2.new(0.0350877196, 0, 0, 0)
  65. Command.Size = UDim2.new(0.672514617, 200, 1, 0)
  66. Command.Font = Enum.Font.SourceSans
  67. Command.PlaceholderText = "Enter a command here"
  68. Command.Text = ""
  69. Command.TextColor3 = Color3.new(1, 1, 1)
  70. Command.TextScaled = true
  71. Command.TextSize = 14
  72. Command.TextWrapped = true
  73. Command.TextXAlignment = Enum.TextXAlignment.Left
  74.  
  75. Cmds.Name = "Cmds"
  76. Cmds.Parent = CmdBar
  77. Cmds.BackgroundColor3 = Color3.new(1, 1, 1)
  78. Cmds.BackgroundTransparency = 1
  79. Cmds.BorderSizePixel = 0
  80. Cmds.Position = UDim2.new(0.141812861, 0, -5.909091, 0)
  81. Cmds.Size = UDim2.new(0, 479, 0, 174)
  82.  
  83. Cmd.Name = "Cmd"
  84. Cmd.Parent = Cmds
  85. Cmd.BackgroundColor3 = Color3.new(1, 1, 1)
  86. Cmd.BackgroundTransparency = 1
  87. Cmd.Position = UDim2.new(0.0208768267, 0, 0.649425328, 0)
  88. Cmd.Size = UDim2.new(0, 447, 0, 20)
  89. Cmd.Font = Enum.Font.SourceSans
  90. Cmd.Text = "LoopKill [Target] - LoopKills a player - ALPHA"
  91. Cmd.TextColor3 = Color3.new(1, 1, 1)
  92. Cmd.TextScaled = true
  93. Cmd.TextSize = 14
  94. Cmd.TextWrapped = true
  95. Cmd.TextXAlignment = Enum.TextXAlignment.Left
  96.  
  97. UIListLayout.Parent = Cmds
  98. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  99. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
  100.  
  101. Cmd_2.Name = "Cmd"
  102. Cmd_2.Parent = Cmds
  103. Cmd_2.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Cmd_2.BackgroundTransparency = 1
  105. Cmd_2.Position = UDim2.new(0.0208768267, 0, 0.764367878, 0)
  106. Cmd_2.Size = UDim2.new(0, 447, 0, 20)
  107. Cmd_2.Font = Enum.Font.SourceSans
  108. Cmd_2.Text = "Kill [Target] - Kills a player - BETA"
  109. Cmd_2.TextColor3 = Color3.new(1, 1, 1)
  110. Cmd_2.TextScaled = true
  111. Cmd_2.TextSize = 14
  112. Cmd_2.TextWrapped = true
  113. Cmd_2.TextXAlignment = Enum.TextXAlignment.Left
  114.  
  115. Cmd_3.Name = "Cmd"
  116. Cmd_3.Parent = Cmds
  117. Cmd_3.BackgroundColor3 = Color3.new(1, 1, 1)
  118. Cmd_3.BackgroundTransparency = 1
  119. Cmd_3.Position = UDim2.new(0.0208768267, 0, 0.649425328, 0)
  120. Cmd_3.Size = UDim2.new(0, 447, 0, 20)
  121. Cmd_3.Font = Enum.Font.SourceSans
  122. Cmd_3.Text = "WS [Amount] - Sets your Speed To the amount"
  123. Cmd_3.TextColor3 = Color3.new(1, 1, 1)
  124. Cmd_3.TextScaled = true
  125. Cmd_3.TextSize = 14
  126. Cmd_3.TextWrapped = true
  127. Cmd_3.TextXAlignment = Enum.TextXAlignment.Left
  128.  
  129. Cmd_4.Name = "Cmd"
  130. Cmd_4.Parent = Cmds
  131. Cmd_4.BackgroundColor3 = Color3.new(1, 1, 1)
  132. Cmd_4.BackgroundTransparency = 1
  133. Cmd_4.Position = UDim2.new(0.0208768267, 0, 0.649425328, 0)
  134. Cmd_4.Size = UDim2.new(0, 447, 0, 20)
  135. Cmd_4.Font = Enum.Font.SourceSans
  136. Cmd_4.Text = "Fly - Makes your character fly"
  137. Cmd_4.TextColor3 = Color3.new(1, 1, 1)
  138. Cmd_4.TextScaled = true
  139. Cmd_4.TextSize = 14
  140. Cmd_4.TextWrapped = true
  141. Cmd_4.TextXAlignment = Enum.TextXAlignment.Left
  142.  
  143. Cmd_5.Name = "Cmd"
  144. Cmd_5.Parent = Cmds
  145. Cmd_5.BackgroundColor3 = Color3.new(1, 1, 1)
  146. Cmd_5.BackgroundTransparency = 1
  147. Cmd_5.Position = UDim2.new(0.0208768267, 0, 0.649425328, 0)
  148. Cmd_5.Size = UDim2.new(0, 447, 0, 20)
  149. Cmd_5.Font = Enum.Font.SourceSans
  150. Cmd_5.Text = "Gunmod - Mods evry weapon that you have - BETA"
  151. Cmd_5.TextColor3 = Color3.new(1, 1, 1)
  152. Cmd_5.TextScaled = true
  153. Cmd_5.TextSize = 14
  154. Cmd_5.TextWrapped = true
  155. Cmd_5.TextXAlignment = Enum.TextXAlignment.Left
  156.  
  157. Cmd_6.Name = "Cmd"
  158. Cmd_6.Parent = Cmds
  159. Cmd_6.BackgroundColor3 = Color3.new(1, 1, 1)
  160. Cmd_6.BackgroundTransparency = 1
  161. Cmd_6.Position = UDim2.new(0.0208768267, 0, 0.649425328, 0)
  162. Cmd_6.Size = UDim2.new(0, 447, 0, 20)
  163. Cmd_6.Font = Enum.Font.SourceSans
  164. Cmd_6.Text = "Goto [Target] - Teleports you to a target"
  165. Cmd_6.TextColor3 = Color3.new(1, 1, 1)
  166. Cmd_6.TextScaled = true
  167. Cmd_6.TextSize = 14
  168. Cmd_6.TextWrapped = true
  169. Cmd_6.TextXAlignment = Enum.TextXAlignment.Left
  170.  
  171.  
  172.  
  173. function Tween(O,T,S)
  174. if O then
  175. game:GetService("TweenService"):Create(O,TweenInfo.new(T),S):Play()
  176. end
  177. end
  178. local Mouse = game.Players.LocalPlayer:GetMouse()
  179. local CommandBar = script.Parent
  180. Mouse.KeyDown:connect(function(Key)
  181. if Key == [[;]] then
  182. Tween(CmdBar,0.5,{Position = UDim2.new(0.054, 0,0.916, 0)})
  183. Command:CaptureFocus()
  184. wait(0.01)
  185. Command.Text = ""
  186. end
  187. end)
  188. Command.FocusLost:connect(function(Enter)
  189. Tween(CmdBar,1.5,{Position = UDim2.new(0.054, 0,1.5, 0)})
  190. if Enter then
  191. if string.sub(Command.Text,1,5)=="kill " then
  192. if string.sub(Command.Text, 6) == "me" then
  193. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  194. end
  195. if string.sub(Command.Text,6)=="all" then
  196. for _,v in pairs(workspace:GetDescendants()) do
  197. for _,e in pairs(game.Players:GetChildren()) do
  198. if v.Name == "InflictTarget" then
  199. local gun = v
  200. gun:FireServer(e.Character.Humanoid,e.Character.Head,math.huge)
  201. end
  202. end
  203. end
  204. end
  205. if string.sub(Command.Text,6)=="others" then
  206. for _,v in pairs(workspace:GetDescendants()) do
  207. for _,e in pairs(game.Players:GetChildren()) do
  208. if e ~= game.Players.LocalPlayer then
  209. if v.Name == "InflictTarget" then
  210. local gun = v
  211. gun:FireServer(e.Character.Humanoid,e.Character.Head,math.huge)
  212. end
  213. end
  214. end
  215. end
  216. end
  217. local Target = string.sub(Command.Text,6)
  218. for _,v in pairs(workspace:GetDescendants()) do
  219. if v.Name == "InflictTarget" then
  220. local gun = v
  221. local target = Target
  222. gun:FireServer(game.Players[target].Character:FindFirstChildWhichIsA("Humanoid"),game.Players[target].Character.Head,math.huge)
  223. end
  224. end
  225. end
  226.  
  227. if string.sub(Command.Text,1,9)=="loopkill " then
  228. local Target = string.sub(Command.Text,10)
  229. for _,v in pairs(workspace:GetDescendants()) do
  230. if v.Name == "InflictTarget" then
  231. local gun = v
  232. local target = Target
  233. while wait(16) do
  234. gun:FireServer(game.Players[target].Character:FindFirstChildWhichIsA("Humanoid"),game.Players[target].Character.Head,math.huge)
  235. end
  236. end
  237. end
  238. end
  239.  
  240. if string.sub(Command.Text,1,5)=="goto " then
  241. local Target = string.sub(Command.Text,6)
  242. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[Target].Character.HumanoidRootPart.CFrame
  243. end
  244.  
  245. if string.sub(Command.Text,1,3)=="ws " then
  246. local Amount = string.sub(Command.Text,4)
  247. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(Amount) or 0
  248. end
  249.  
  250. if string.sub(Command.Text,1,7)=="gunmod" then
  251. for i,v in next, getgc(true) do
  252. if type(v) == "table" and rawget(v,"FireRate") then
  253. v.Spread = 0
  254. v.AmmoPerMag = 100
  255. v.FireRate= 00.00
  256. v.BaseDamage = 50
  257. v.Auto = true
  258. v.ReloadTime = 0
  259. v.CameraShakingEnabled = true
  260. v.Recoil = 0
  261. v.AngleX = 0
  262. v.AngleY = 0
  263. v.Spread = 0
  264. v.RecoilRedution = 0
  265. v.RecoilSpeed = 0.01
  266. end
  267. end
  268. end
  269.  
  270. if string.sub(Command.Text,1,3)=="fly" then
  271. repeat wait()
  272.     until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  273. local mouse = game.Players.LocalPlayer:GetMouse()
  274. repeat wait() until mouse
  275. local plr = game.Players.LocalPlayer
  276. local torso = plr.Character.Torso
  277. local flying = true
  278. local deb = true
  279. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  280. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  281. local maxspeed = 100
  282. local speed = 100
  283.  
  284. function Fly()
  285. local bg = Instance.new("BodyGyro", torso)
  286. bg.P = 9e4
  287. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  288. bg.cframe = torso.CFrame
  289. local bv = Instance.new("BodyVelocity", torso)
  290. bv.velocity = Vector3.new(0,0.1,0)
  291. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  292. repeat wait()
  293. plr.Character.Humanoid.PlatformStand = true
  294. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  295. speed = speed+.5+(speed/maxspeed)
  296. if speed > maxspeed then
  297. speed = maxspeed
  298. end
  299. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  300. speed = speed-1
  301. if speed < 0 then
  302. speed = 0
  303. end
  304. end
  305. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  306. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  307. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  308. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  309. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  310. else
  311. bv.velocity = Vector3.new(0,0.1,0)
  312. end
  313. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  314. until not flying
  315. ctrl = {f = 0, b = 0, l = 0, r = 0}
  316. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  317. speed = 0
  318. bg:Destroy()
  319. bv:Destroy()
  320. plr.Character.Humanoid.PlatformStand = false
  321. end
  322. mouse.KeyDown:connect(function(key)
  323. if key:lower() == "e" then
  324. if flying then flying = false
  325. else
  326. flying = true
  327. Fly()
  328. end
  329. elseif key:lower() == "w" then
  330. ctrl.f = 1
  331. elseif key:lower() == "s" then
  332. ctrl.b = -1
  333. elseif key:lower() == "a" then
  334. ctrl.l = -1
  335. elseif key:lower() == "d" then
  336. ctrl.r = 1
  337. end
  338. end)
  339. mouse.KeyUp:connect(function(key)
  340. if key:lower() == "w" then
  341. ctrl.f = 0
  342. elseif key:lower() == "s" then
  343. ctrl.b = 0
  344. elseif key:lower() == "a" then
  345. ctrl.l = 0
  346. elseif key:lower() == "d" then
  347. ctrl.r = 0
  348. end
  349. end)
  350. Fly()
  351. end
  352.  
  353. end
  354. end)
  355.  
  356. Command:GetPropertyChangedSignal("Text"):Connect(function()
  357. local text = string.lower(Command.Text)
  358. for i,v in pairs(Cmds:GetChildren()) do
  359. if v:IsA("TextLabel") then
  360. v.Visible = true
  361. local ftext = string.lower(v.Text)
  362. if not string.match(ftext, text) then
  363. v.Visible = false
  364. end
  365. end
  366. end
  367. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement