Advertisement
StenHisDirt

Player Commands

Jun 25th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.38 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local PlayerCommands = Instance.new("ScreenGui")
  5. local OpenFrame = Instance.new("Frame")
  6. local Open = Instance.new("TextButton")
  7. local BySten = Instance.new("TextLabel")
  8. local PlayerFrame = Instance.new("Frame")
  9. local Speed = Instance.new("TextButton")
  10. local Nothing = Instance.new("Frame")
  11. local TextBox = Instance.new("TextBox")
  12. local Jump = Instance.new("TextButton")
  13. local HipHeight = Instance.new("TextButton")
  14. local XPlr = Instance.new("TextButton")
  15. local Amount = Instance.new("TextLabel")
  16. local MainFrame = Instance.new("Frame")
  17. local Player = Instance.new("TextButton")
  18. local Platers = Instance.new("TextButton")
  19. local PlayersFrame = Instance.new("Frame")
  20. local Nothing_2 = Instance.new("Frame")
  21. local NameBox = Instance.new("TextBox")
  22. local XPlrs = Instance.new("TextButton")
  23. local Kill = Instance.new("TextButton")
  24. local Bring = Instance.new("TextButton")
  25. local View = Instance.new("TextButton")
  26. local PlrName = Instance.new("TextLabel")
  27. local Nothing_3 = Instance.new("TextLabel")
  28. --Properties:
  29. PlayerCommands.Name = "PlayerCommands"
  30. PlayerCommands.Parent = game.CoreGui
  31. PlayerCommands.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  32.  
  33. OpenFrame.Name = "OpenFrame"
  34. OpenFrame.Parent = PlayerCommands
  35. OpenFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  36. OpenFrame.Position = UDim2.new(0.712543011, 0, -0.00122846384, 0)
  37. OpenFrame.Size = UDim2.new(0, 120, 0, 66)
  38. OpenFrame.Style = Enum.FrameStyle.RobloxRound
  39.  
  40. Open.Name = "Open"
  41. Open.Parent = OpenFrame
  42. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  43. Open.Position = UDim2.new(-0.0782629997, 0, -0.121563233, 0)
  44. Open.Size = UDim2.new(0, 120, 0, 38)
  45. Open.Style = Enum.ButtonStyle.RobloxRoundButton
  46. Open.Font = Enum.Font.GothamBlack
  47. Open.Text = "Open :)"
  48. Open.TextColor3 = Color3.new(0, 0, 0)
  49. Open.TextSize = 30
  50. Open.TextWrapped = true
  51. Open.MouseButton1Down:connect(function()
  52. MainFrame.Visible = true
  53. OpenFrame.Visible = false
  54. end)
  55.  
  56. BySten.Name = "BySten"
  57. BySten.Parent = OpenFrame
  58. BySten.BackgroundColor3 = Color3.new(1, 1, 1)
  59. BySten.BackgroundTransparency = 1
  60. BySten.Position = UDim2.new(-0.0384889059, 0, 0.48475492, 0)
  61. BySten.Size = UDim2.new(0, 120, 0, 38)
  62. BySten.Font = Enum.Font.GothamBlack
  63. BySten.Text = "Gui By: Sten"
  64. BySten.TextColor3 = Color3.new(0.513726, 0.513726, 0.513726)
  65. BySten.TextSize = 17
  66. BySten.TextWrapped = true
  67.  
  68. PlayerFrame.Name = "PlayerFrame"
  69. PlayerFrame.Parent = PlayerCommands
  70. PlayerFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  71. PlayerFrame.Position = UDim2.new(0.922445953, 0, 0.5, 0)
  72. PlayerFrame.Size = UDim2.new(0, 100, 0, 148)
  73. PlayerFrame.Visible = false
  74. PlayerFrame.Style = Enum.FrameStyle.RobloxRound
  75.  
  76. Speed.Name = "Speed"
  77. Speed.Parent = PlayerFrame
  78. Speed.BackgroundColor3 = Color3.new(1, 1, 1)
  79. Speed.Position = UDim2.new(0.00294433534, 0, 0.419515669, 0)
  80. Speed.Size = UDim2.new(0, 86, 0, 24)
  81. Speed.Style = Enum.ButtonStyle.RobloxRoundButton
  82. Speed.Font = Enum.Font.SourceSans
  83. Speed.Text = "Speed"
  84. Speed.TextColor3 = Color3.new(0, 0, 0)
  85. Speed.TextSize = 14
  86.  
  87. Nothing.Name = "Nothing"
  88. Nothing.Parent = PlayerFrame
  89. Nothing.BackgroundColor3 = Color3.new(1, 1, 1)
  90. Nothing.Position = UDim2.new(-0.0899999961, 0, 0.0927536339, 0)
  91. Nothing.Size = UDim2.new(0, 99, 0, 37)
  92. Nothing.Style = Enum.FrameStyle.RobloxRound
  93.  
  94. TextBox.Parent = PlayerFrame
  95. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  96. TextBox.BackgroundTransparency = 1
  97. TextBox.Position = UDim2.new(-0.00457519479, 0, 0.0986480713, 0)
  98. TextBox.Size = UDim2.new(0, 83, 0, 35)
  99. TextBox.Font = Enum.Font.SourceSans
  100. TextBox.Text = ""
  101. TextBox.TextColor3 = Color3.new(1, 1, 1)
  102. TextBox.TextSize = 14
  103.  
  104. Jump.Name = "Jump"
  105. Jump.Parent = PlayerFrame
  106. Jump.BackgroundColor3 = Color3.new(1, 1, 1)
  107. Jump.Position = UDim2.new(0.00294433534, 0, 0.605040073, 0)
  108. Jump.Size = UDim2.new(0, 86, 0, 24)
  109. Jump.Style = Enum.ButtonStyle.RobloxRoundButton
  110. Jump.Font = Enum.Font.SourceSans
  111. Jump.Text = "Jump"
  112. Jump.TextColor3 = Color3.new(0, 0, 0)
  113. Jump.TextSize = 14
  114.  
  115. HipHeight.Name = "HipHeight"
  116. HipHeight.Parent = PlayerFrame
  117. HipHeight.BackgroundColor3 = Color3.new(1, 1, 1)
  118. HipHeight.Position = UDim2.new(0.00294433534, 0, 0.796020925, 0)
  119. HipHeight.Size = UDim2.new(0, 86, 0, 24)
  120. HipHeight.Style = Enum.ButtonStyle.RobloxRoundButton
  121. HipHeight.Font = Enum.Font.SourceSans
  122. HipHeight.Text = "HipHeight"
  123. HipHeight.TextColor3 = Color3.new(0, 0, 0)
  124. HipHeight.TextSize = 14
  125.  
  126. XPlr.Name = "XPlr"
  127. XPlr.Parent = PlayerFrame
  128. XPlr.BackgroundColor3 = Color3.new(1, 1, 1)
  129. XPlr.Position = UDim2.new(0.830996096, 0, -0.0611563958, 0)
  130. XPlr.Size = UDim2.new(0, 21, 0, 21)
  131. XPlr.Style = Enum.ButtonStyle.RobloxRoundButton
  132. XPlr.Font = Enum.Font.SourceSans
  133. XPlr.Text = "X"
  134. XPlr.TextColor3 = Color3.new(0, 0, 0)
  135. XPlr.TextSize = 14
  136. XPlr.MouseButton1Down:connect(function()
  137. PlayerFrame.Visible = false
  138. end)
  139.  
  140. Amount.Name = "Amount"
  141. Amount.Parent = PlayerFrame
  142. Amount.BackgroundColor3 = Color3.new(1, 1, 1)
  143. Amount.BackgroundTransparency = 1
  144. Amount.Position = UDim2.new(-0.219663024, 0, -0.127013683, 0)
  145. Amount.Size = UDim2.new(0, 113, 0, 41)
  146. Amount.Font = Enum.Font.SourceSans
  147. Amount.Text = "The Amout "
  148. Amount.TextColor3 = Color3.new(1, 1, 1)
  149. Amount.TextSize = 14
  150.  
  151. MainFrame.Name = "MainFrame"
  152. MainFrame.Parent = PlayerCommands
  153. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  154. MainFrame.Position = UDim2.new(0.920834184, 0, 0.42137593, 0)
  155. MainFrame.Size = UDim2.new(0, 106, 0, 64)
  156. MainFrame.Visible = false
  157. MainFrame.Style = Enum.FrameStyle.RobloxRound
  158.  
  159. Player.Name = "Player"
  160. Player.Parent = MainFrame
  161. Player.BackgroundColor3 = Color3.new(1, 1, 1)
  162. Player.Position = UDim2.new(0.0127161369, 0, 0.526868343, 0)
  163. Player.Size = UDim2.new(0, 89, 0, 27)
  164. Player.Style = Enum.ButtonStyle.RobloxRoundButton
  165. Player.Font = Enum.Font.SourceSans
  166. Player.Text = "Local"
  167. Player.TextColor3 = Color3.new(0, 0, 0)
  168. Player.TextSize = 18
  169. Player.MouseButton1Down:connect(function()
  170. PlayerFrame.Visible = true
  171. end)
  172.  
  173. Platers.Name = "Platers"
  174. Platers.Parent = MainFrame
  175. Platers.BackgroundColor3 = Color3.new(1, 1, 1)
  176. Platers.Position = UDim2.new(0.0127161369, 0, -0.0356316566, 0)
  177. Platers.Size = UDim2.new(0, 89, 0, 27)
  178. Platers.Style = Enum.ButtonStyle.RobloxRoundButton
  179. Platers.Font = Enum.Font.SourceSans
  180. Platers.Text = "Players"
  181. Platers.TextColor3 = Color3.new(0, 0, 0)
  182. Platers.TextSize = 18
  183. Platers.MouseButton1Down:connect(function()
  184. PlayersFrame.Visible = true
  185. end)
  186.  
  187. PlayersFrame.Name = "PlayersFrame"
  188. PlayersFrame.Parent = PlayerCommands
  189. PlayersFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  190. PlayersFrame.Position = UDim2.new(0.923061728, 0, 0.175967783, 0)
  191. PlayersFrame.Size = UDim2.new(0, 100, 0, 199)
  192. PlayersFrame.Visible = false
  193. PlayersFrame.Style = Enum.FrameStyle.RobloxRound
  194.  
  195. Nothing_2.Name = "Nothing"
  196. Nothing_2.Parent = PlayersFrame
  197. Nothing_2.BackgroundColor3 = Color3.new(1, 1, 1)
  198. Nothing_2.Position = UDim2.new(-0.0899999961, 0, 0.0927536339, 0)
  199. Nothing_2.Size = UDim2.new(0, 99, 0, 37)
  200. Nothing_2.Style = Enum.FrameStyle.RobloxRound
  201.  
  202. NameBox.Name = "NameBox"
  203. NameBox.Parent = PlayersFrame
  204. NameBox.BackgroundColor3 = Color3.new(1, 1, 1)
  205. NameBox.BackgroundTransparency = 1
  206. NameBox.Position = UDim2.new(-0.00457519479, 0, 0.0986480713, 0)
  207. NameBox.Size = UDim2.new(0, 83, 0, 35)
  208. NameBox.Font = Enum.Font.SourceSans
  209. NameBox.Text = ""
  210. NameBox.TextColor3 = Color3.new(1, 1, 1)
  211. NameBox.TextSize = 14
  212.  
  213. XPlrs.Name = "XPlrs"
  214. XPlrs.Parent = PlayersFrame
  215. XPlrs.BackgroundColor3 = Color3.new(1, 1, 1)
  216. XPlrs.Position = UDim2.new(0.840996087, 0, -0.0460810177, 0)
  217. XPlrs.Size = UDim2.new(0, 21, 0, 21)
  218. XPlrs.Style = Enum.ButtonStyle.RobloxRoundButton
  219. XPlrs.Font = Enum.Font.SourceSans
  220. XPlrs.Text = "X"
  221. XPlrs.TextColor3 = Color3.new(0, 0, 0)
  222. XPlrs.TextSize = 14
  223. XPlrs.MouseButton1Click:connect(function()
  224. PlayersFrame.Visible = false
  225. end)
  226.  
  227. Kill.Name = "Kill"
  228. Kill.Parent = PlayersFrame
  229. Kill.BackgroundColor3 = Color3.new(1, 1, 1)
  230. Kill.Position = UDim2.new(-0.0170556642, 0, 0.637574196, 0)
  231. Kill.Size = UDim2.new(0, 86, 0, 24)
  232. Kill.Style = Enum.ButtonStyle.RobloxRoundButton
  233. Kill.Font = Enum.Font.SourceSans
  234. Kill.Text = "Kill"
  235. Kill.TextColor3 = Color3.new(0, 0, 0)
  236. Kill.TextSize = 14
  237. Kill.MouseButton1Down:connect(function()
  238. local NOW = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  239. game.Players.LocalPlayer.Character.Humanoid.Name = 1
  240. local l = game.Players.LocalPlayer.Character["1"]:Clone()
  241. l.Parent = game.Players.LocalPlayer.Character
  242. l.Name = "Humanoid"
  243. wait(0.1)
  244. game.Players.LocalPlayer.Character["1"]:Destroy()
  245. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  246. game.Players.LocalPlayer.Character.Animate.Disabled = true
  247. wait(0.1)
  248. game.Players.LocalPlayer.Character.Animate.Disabled = false
  249. game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  250. for i,v in pairs(game:GetService'Players'.LocalPlayer.Backpack:GetChildren())do
  251. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  252. end
  253. local function tp(player,player2)
  254. local char1,char2=player.Character,player2.Character
  255. if char1 and char2 then
  256. char1:MoveTo(char2.Head.Position)
  257. end
  258. end
  259. for i,v in pairs(GetPlayer(NameBox.Text))do
  260. wait(0.1)
  261. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame
  262. wait(0.2)
  263. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame
  264. wait(0.2)
  265. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-100000,0,-100000))
  266. wait(0.7)
  267. tp(game.Players.LocalPlayer,game.Players[v.Name])
  268. wait(0.7)
  269. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = NOW
  270. end
  271. end)
  272.  
  273. Bring.Name = "Bring"
  274. Bring.Parent = PlayersFrame
  275. Bring.BackgroundColor3 = Color3.new(1, 1, 1)
  276. Bring.Position = UDim2.new(-0.0170556642, 0, 0.485219955, 0)
  277. Bring.Size = UDim2.new(0, 86, 0, 24)
  278. Bring.Style = Enum.ButtonStyle.RobloxRoundButton
  279. Bring.Font = Enum.Font.SourceSans
  280. Bring.Text = "Bring"
  281. Bring.TextColor3 = Color3.new(0, 0, 0)
  282. Bring.TextSize = 14
  283. Bring.MouseButton1Down:connect(function()
  284. local NOW = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  285. game.Players.LocalPlayer.Character.Humanoid.Name = 1
  286. local l = game.Players.LocalPlayer.Character["1"]:Clone()
  287. l.Parent = game.Players.LocalPlayer.Character
  288. l.Name = "Humanoid"
  289. wait(0.1)
  290. game.Players.LocalPlayer.Character["1"]:Destroy()
  291. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  292. game.Players.LocalPlayer.Character.Animate.Disabled = true
  293. wait(0.1)
  294. game.Players.LocalPlayer.Character.Animate.Disabled = false
  295. game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  296. for i,v in pairs(game:GetService'Players'.LocalPlayer.Backpack:GetChildren())do
  297. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  298. end
  299.  
  300. local function tp(player,player2)
  301. local char1,char2=player.Character,player2.Character
  302. if char1 and char2 then
  303. char1.HumanoidRootPart.CFrame = char2.HumanoidRootPart.CFrame
  304. end
  305. end
  306.  
  307. local function getout(player,player2)
  308. local char1,char2=player.Character,player2.Character
  309. if char1 and char2 then
  310. char1:MoveTo(char2.Head.Position)
  311. end
  312. end
  313.  
  314. for i,v in pairs(GetPlayer(NameBox.Text))do
  315. tp(game.Players[v.Name], game.Players.LocalPlayer)
  316. wait(0.2)
  317. tp(game.Players[v.Name], game.Players.LocalPlayer)
  318. wait(0.5)
  319. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = NOW
  320. wait(0.5)
  321. getout(game.Players.LocalPlayer, game.Players[v.Name])
  322. wait(0.3)
  323. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = NOW
  324. end
  325. end)
  326.  
  327. View.Name = "View"
  328. View.Parent = PlayersFrame
  329. View.BackgroundColor3 = Color3.new(1, 1, 1)
  330. View.Position = UDim2.new(-0.0170556642, 0, 0.338322163, 0)
  331. View.Size = UDim2.new(0, 86, 0, 24)
  332. View.Style = Enum.ButtonStyle.RobloxRoundButton
  333. View.Font = Enum.Font.SourceSans
  334. View.Text = "View"
  335. View.TextColor3 = Color3.new(0, 0, 0)
  336. View.TextSize = 14
  337. currentview = false
  338. View.MouseButton1Click:connect(function()
  339. currentview = not currentview
  340. for i,v in pairs(GetPlayer(NameBox.Text))do
  341. if currentview then
  342. game.Workspace.CurrentCamera.CameraSubject = game.Players[v.Name].Character.Head
  343. View.BackgroundColor3 = Color3.new(0.403922, 0.796078, 0.858824)
  344. else
  345. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Head
  346. View.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  347. end
  348. end
  349. end)
  350.  
  351. PlrName.Name = "PlrName"
  352. PlrName.Parent = PlayersFrame
  353. PlrName.BackgroundColor3 = Color3.new(1, 1, 1)
  354. PlrName.BackgroundTransparency = 1
  355. PlrName.Position = UDim2.new(-0.101317137, 0, -0.0615467466, 0)
  356. PlrName.Size = UDim2.new(0, 80, 0, 41)
  357. PlrName.Font = Enum.Font.SourceSans
  358. PlrName.Text = "Player Name"
  359. PlrName.TextColor3 = Color3.new(1, 1, 1)
  360. PlrName.TextSize = 14
  361.  
  362. Nothing_3.Name = "Nothing"
  363. Nothing_3.Parent = PlayersFrame
  364. Nothing_3.BackgroundColor3 = Color3.new(1, 1, 1)
  365. Nothing_3.BackgroundTransparency = 1
  366. Nothing_3.Position = UDim2.new(-0.0743750036, 0, 0.685813367, 0)
  367. Nothing_3.Size = UDim2.new(0, 96, 0, 76)
  368. Nothing_3.Font = Enum.Font.SourceSans
  369. Nothing_3.Text = "For these things\nYou need a tool\n In you hand"
  370. Nothing_3.TextColor3 = Color3.new(1, 1, 1)
  371. Nothing_3.TextSize = 15
  372.  
  373. HipHeight.MouseButton1Click:connect(function()
  374. game.Players.LocalPlayer.Character.Humanoid.HipHeight = TextBox.Text
  375. end)
  376. Speed.MouseButton1Click:connect(function()
  377. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = TextBox.Text
  378. end)
  379. Jump.MouseButton1Click:connect(function()
  380. game.Players.LocalPlayer.Character.Humanoid.JumpPower = TextBox.Text
  381. end)
  382.  
  383. function GetPlayer(String)
  384. local Found = {}
  385. local strl = String:lower()
  386. if strl == "all" then
  387. for i,v in pairs(game.Players:GetPlayers()) do
  388. table.insert(Found,v)
  389. end
  390. elseif strl == "others" then
  391. for i,v in pairs(game.Players:GetPlayers()) do
  392. if v.Name ~= game.Players.LocalPlayer.Name then
  393. table.insert(Found,v)
  394. end
  395. end
  396. else
  397. for i,v in pairs(game.Players:GetPlayers()) do
  398. if v.Name:lower():sub(1, #String) == String:lower() then
  399. table.insert(Found,v)
  400. end
  401. end
  402. end
  403. return Found
  404. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement