Advertisement
Roblox_Studio_Tips

Greenwood Town Script - CLICK ; FOR COMMANDS

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