Advertisement
iiPsychoFalls

gfbsgbervhfvgbggdfgtbgfhgdfh

Oct 16th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.74 KB | None | 0 0
  1. wait(1)
  2. local Players = game:GetService("Players")
  3. local Player = Players.LocalPlayer
  4. local Mouse = Player:GetMouse()
  5. local Crashed = false
  6. local AntiHak = false
  7. local Innos = {}
  8. local Murds = {}
  9. local Sherr = {}
  10. local Lobby = {}
  11. local LKill = {}
  12. local ClickEnabled = false
  13. local ClickMethod = ""
  14.  
  15. local function GetPlayerFromShortName(ShortName)
  16. local Plr = nil
  17. for i, v in ipairs(game.Players:GetPlayers()) do
  18. if string.find(string.lower(v.Name),string.lower(ShortName)) ~= nil then
  19. Plr = v
  20. end
  21. end
  22. return Plr
  23. end
  24.  
  25. local LateCmds = {
  26. SingleCommands = {
  27. Kawaii = {
  28. Text = "Kawaii",
  29. Apply = function()
  30. for i, v in ipairs(game.Players:GetPlayers()) do
  31. print("aye")
  32. game.ReplicatedStorage.Event:FireServer("PlayRadio", v, 924357545)
  33. end
  34. end
  35. },
  36. Oof = {
  37. Text = "Oof",
  38. Apply = function()
  39. for i, v in ipairs(game.Players:GetPlayers()) do
  40. game.ReplicatedStorage.Event:FireServer("PlayRadio", v, 1104397785)
  41. end
  42. wait(4)
  43. for i, v in ipairs(game.Players:GetPlayers()) do
  44. game.ReplicatedStorage.Event:FireServer("TPD", 20000, v.Character.Humanoid)
  45. end
  46. end
  47. },
  48. Senpai = {
  49. Text = "Senpai",
  50. Apply = function()
  51. for i, v in ipairs(game.Players:GetPlayers()) do
  52. game.ReplicatedStorage.Event:FireServer("PlayRadio", v, 264375158)
  53. end
  54. end
  55. },
  56. MrCrabs = {
  57. Text = "MrCrabs",
  58. Apply = function()
  59. for i, v in ipairs(game.Players:GetPlayers()) do
  60. game.ReplicatedStorage.Event:FireServer("PlayRadio", v, 477888998)
  61. end
  62. end
  63. },
  64. Earape = {
  65. Text = "ERaep",
  66. Apply = function()
  67. for i, v in ipairs(game.Players:GetPlayers()) do
  68. game.ReplicatedStorage.Event:FireServer("PlayRadio", v, 1442863922)
  69. end
  70. end
  71. },
  72. Crash = {
  73. Text = "Crash",
  74. Apply = function()
  75. Crashed = true
  76. end
  77. },
  78. Uncrash = {
  79. Text = "Uncrash",
  80. Apply = function()
  81. Crashed = false
  82. end
  83. },
  84. AntiHack = {
  85. Text = "AntiHack",
  86. Apply = function()
  87. AntiHak = true
  88. end
  89. },
  90. UnAntiHack = {
  91. Text = "UnAntiHack",
  92. Apply = function()
  93. AntiHak = false
  94. end
  95. },
  96. SaveTools = {
  97. Text = "SaveTools",
  98. Apply = function(Args)
  99. for i,v in pairs(Player.Character:GetDescendants()) do
  100. if v:IsA("Tool") then
  101. v.Parent = Player
  102. end
  103. end
  104. end
  105. },
  106. LoadTools = {
  107. Text = "LoadTools",
  108. Apply = function(Args)
  109. for i,v in pairs(Player:GetChildren()) do
  110. if v:IsA("Tool") then
  111. v.Parent = Player.Backpack
  112. end
  113. end
  114. end
  115. }
  116. },
  117. Commands = {
  118. Kill = {
  119. Text = "Kill",
  120. Apply = function(Args)
  121. local Target = GetPlayerFromShortName(Args[2])
  122. if Target ~= nil then
  123. game.ReplicatedStorage.Event:FireServer("TPD", 20000, Target.Character.Humanoid)
  124. end
  125. end
  126. },
  127. ClickCmd = {
  128. Text = "ClickCmd",
  129. Apply = function(Args)
  130. ClickMethod = Args[3]
  131. end
  132. },
  133. Invis = {
  134. Text = "Invis",
  135. Apply = function(Args)
  136. local Target = GetPlayerFromShortName(Args[2])
  137. if Target ~= nil then
  138. game.ReplicatedStorage.Event:FireServer("Cloak", Target.Character)
  139. end
  140. end
  141. },
  142. Play = {
  143. Text = "ForcePlay",
  144. Apply = function(Args)
  145. local Target = GetPlayerFromShortName(Args[2])
  146. local ID = Args[3]
  147. if Target ~= nil and ID ~= "" and ID ~= " " then
  148. game.ReplicatedStorage.Event:FireServer("PlayRadio", Target, ID)
  149. end
  150. end
  151. },
  152. Music = {
  153. Text = "Music",
  154. Apply = function(Args)
  155. local Target = GetPlayerFromShortName(Args[2])
  156. local ID = Args[3]
  157. if Target ~= nil and ID ~= "" and ID ~= " " then
  158. for i, v in ipairs(game.Players:GetPlayers()) do
  159. game.ReplicatedStorage.Event:FireServer("PlayRadio", v, ID)
  160. end
  161. end
  162. end
  163. },
  164. LoopKill = {
  165. Text = "lk",
  166. Apply = function(Args)
  167. print("Fia")
  168. local Target = GetPlayerFromShortName(Args[2])
  169. if Target ~= nil then
  170. table.insert(LKill,Target)
  171. end
  172. end
  173. },
  174. UnLoopKill = {
  175. Text = "unlk",
  176. Apply = function(Args)
  177. print("Fia")
  178. local Target = GetPlayerFromShortName(Args[2])
  179. if Target ~= nil then
  180. local TIndex = 1
  181. for i, v in pairs(LKill) do
  182. if v == Target then
  183. LKill[i] = nil
  184. end
  185. end
  186. for i, v in pairs(LKill) do
  187. if v ~= nil then
  188. LKill[TIndex] = v
  189. TIndex = TIndex + 1
  190. end
  191. end
  192. end
  193. end
  194. },
  195. CountedKill = {
  196. Text = "ck",
  197. Apply = function(Args)
  198. print("Fia")
  199. local Target = GetPlayerFromShortName(Args[2])
  200. if Target ~= nil then
  201. for i = 0,tonumber(Args[3]) do
  202. wait(1.5)
  203. game.ReplicatedStorage.Event:FireServer("TPD", 20000, Target.Character.Humanoid)
  204. end
  205. end
  206. end
  207. },
  208. God = {
  209. Text = "God",
  210. Apply = function(Args)
  211. local Target = GetPlayerFromShortName(Args[2])
  212. if Target ~= nil then
  213. game.ReplicatedStorage.Event:FireServer("TPD", -888888888899999, game.Workspace.Ignore.Players[Target.Character].Humanoid)
  214. game.ReplicatedStorage.Event:FireServer("TPD", -888888888899999, game.Workspace.Ignore.Players[Target.Character].Humanoid)
  215. end
  216. end
  217. }
  218. }
  219. }
  220.  
  221. local function UpdateRoles()
  222. for i,v in pairs(game.Players:GetChildren()) do
  223. if game.Players[v.Name].Character:FindFirstChild("Role") then
  224. local role = game.Players[v.Name].Character:FindFirstChild("Role")
  225. print(v.Name)
  226. print(role.Value)
  227. if role.Value == "Murderer" then
  228. table.insert(Murds,v)
  229. elseif role.Value == "Sheriff" then
  230. table.insert(Sherr,v)
  231. elseif role.Value == "Innocent" then
  232. table.insert(Innos,v)
  233. else
  234. table.insert(Lobby,v)
  235. end
  236. else
  237. table.insert(Lobby,v)
  238. end
  239. end
  240. end
  241.  
  242. local function StringToArray(String,Separator)
  243. local Array = {}
  244. local ExtStr = String
  245. for i = 0,10 do
  246. if ExtStr == "" or ExtStr == " " then
  247.  
  248. else
  249. local Start = string.find(ExtStr,Separator)
  250. if Start ~= nil then
  251. local Arg = string.sub(ExtStr,0,Start-1)
  252. table.insert(Array,Arg)
  253. ExtStr = string.sub(ExtStr,Start+1)
  254. else
  255. table.insert(Array,ExtStr)
  256. ExtStr = ""
  257. end
  258. end
  259. end
  260. if string.lower(Array[1]) == "/e" then
  261. Array[1] = nil
  262. for i, v in pairs(Array) do
  263. if i == 1 then
  264.  
  265. else
  266. Array[i-1] = v
  267. end
  268. end
  269. end
  270. return Array
  271. end
  272.  
  273. local function Admin(Plr)
  274. local v = Plr
  275. v.Chatted:Connect(function(Msg)
  276. local Args = StringToArray(Msg," ")
  277. local Executed = false
  278. for i, v in pairs(LateCmds.SingleCommands) do
  279. if string.lower(Msg) == string.lower(v.Text) or string.lower(Msg) == "/e ".. string.lower(v.Text) then
  280. v.Apply()
  281. end
  282. end
  283. if Args[2] ~= nil then
  284. if string.lower(Args[2]) == "others" then
  285. for i, v in pairs(LateCmds.Commands) do
  286. if string.lower(Args[1]) == string.lower(v.Text) then
  287. for e, p in ipairs(game.Players:GetPlayers()) do
  288. if p.Name ~= Player.Name then
  289. Executed = true
  290. Args[2] = string.sub(p.Name,0,string.len(p.Name)-2)
  291. v.Apply(Args)
  292. end
  293. end
  294. end
  295. end
  296. elseif string.lower(Args[2]) == "all" then
  297. for i, v in pairs(LateCmds.Commands) do
  298. if string.lower(Args[1]) == string.lower(v.Text) then
  299. for e, p in ipairs(game.Players:GetPlayers()) do
  300. Args[2] = string.sub(p.Name,0,string.len(p.Name)-2)
  301. v.Apply(Args)
  302. end
  303. end
  304. end
  305. elseif string.lower(Args[2]) == "murds" then
  306. UpdateRoles()
  307. for i, v in pairs(LateCmds.Commands) do
  308. if string.lower(Args[1]) == string.lower(v.Text) then
  309. for e, p in pairs(Murds) do
  310. Args[2] = string.sub(p.Name,0,string.len(p.Name)-2)
  311. v.Apply(Args)
  312. end
  313. end
  314. end
  315. elseif string.lower(Args[2]) == "innos" then
  316. UpdateRoles()
  317. for i, v in pairs(LateCmds.Commands) do
  318. if string.lower(Args[1]) == string.lower(v.Text) then
  319. for e, p in pairs(Innos) do
  320. Args[2] = string.sub(p.Name,0,string.len(p.Name)-2)
  321. v.Apply(Args)
  322. end
  323. end
  324. end
  325. elseif string.lower(Args[2]) == "sherr" then
  326. UpdateRoles()
  327. for i, v in pairs(LateCmds.Commands) do
  328. if string.lower(Args[1]) == string.lower(v.Text) then
  329. for e, p in pairs(Sherr) do
  330. Args[2] = string.sub(p.Name,0,string.len(p.Name)-2)
  331. v.Apply(Args)
  332. end
  333. end
  334. end
  335. elseif string.lower(Args[2]) == "lobby" then
  336. UpdateRoles()
  337. for i, v in pairs(LateCmds.Commands) do
  338. if string.lower(Args[1]) == string.lower(v.Text) then
  339. for e, p in pairs(Lobby) do
  340. Args[2] = string.sub(p.Name,0,string.len(p.Name)-2)
  341. v.Apply(Args)
  342. end
  343. end
  344. end
  345. elseif string.lower(Args[2]) == "me" then
  346. for i, v in pairs(LateCmds.Commands) do
  347. if string.lower(Args[1]) == string.lower(v.Text) then
  348. Args[2] = string.sub(Player.Name,0,string.len(Player.Name)-2)
  349. v.Apply(Args)
  350. end
  351. end
  352. else
  353. for i, v in pairs(LateCmds.Commands) do
  354. if string.lower(Args[1]) == string.lower(v.Text) then
  355. v.Apply(Args)
  356. end
  357. end
  358. end
  359. end
  360. end)
  361. end
  362.  
  363. Admin(Player)
  364.  
  365. Mouse.KeyDown:Connect(function(Key)
  366. if Key == "r" then
  367. if ClickEnabled == true then
  368. ClickEnabled = false
  369. else
  370. ClickEnabled = true
  371. end
  372. elseif Key == "z" then
  373. for i,v in pairs(Player.Character:GetDescendants()) do
  374. if v:IsA("Tool") then
  375. v.Parent = Player
  376. end
  377. end
  378. elseif Key == "x" then
  379. for i,v in pairs(Player:GetChildren()) do
  380. if v:IsA("Tool") then
  381. v.Parent = Player.Backpack
  382. end
  383. end
  384. end
  385. end)
  386.  
  387. Mouse.Button1Down:Connect(function()
  388. if ClickEnabled == true then
  389. if ClickMethod == "dst" then
  390. Mouse.Target:Destroy()
  391. elseif ClickMethod == "tp" then
  392. Player.Character.HumanoidRootPart.CFrame = Mouse.Hit + Vector3.new(0,2.5,0)
  393. end
  394. end
  395. end)
  396.  
  397. LateCmds.Commands.Admin = {
  398. Text = "Admin",
  399. Apply = function(Args)
  400. local Target = GetPlayerFromShortName(Args[2])
  401. if Target ~= nil then
  402. Admin(Player)
  403. end
  404. end
  405. }
  406. if Crashed == true then
  407. for i,v in pairs(game.Players:GetChildren()) do
  408. if v.Character ~= nil and v.Name ~= Player.Name and v.Character:FindFirstChild("Torso") ~= nil then
  409. v.Character.Torso:Destroy()
  410. end
  411. game.ReplicatedStorage.Event:FireServer("PlayRadio", v, 491150071)
  412. end
  413. end
  414. if AntiHak == true then
  415. antiKek={'AntiSpeedHack','AntiDataTheft','UI','NO FF','NO FF'}
  416. local Player = game.Players.LocalPlayer
  417. local Gui = Player.PlayerGui
  418. for i,v in pairs(antiKek) do
  419. if Gui:FindFirstChild(v) then
  420. Gui:FindFirstChild(v):Remove()
  421. end
  422. end
  423. end
  424. while wait(1) do
  425. for i,v in pairs(game.Players:GetChildren()) do
  426. if game.Players[v.Name].Character:FindFirstChild("Role") then
  427. local role = game.Players[v.Name].Character:FindFirstChild("Role")
  428. if role.Value == "Murderer" then
  429. game.CoreGui.RobloxGui.PlayerListContainer.ScrollList[v.Name].BGFrame.PlayerName.TextColor3 = Color3.new(1, 0, 0)
  430. elseif role.Value == "Sheriff" then
  431. game.CoreGui.RobloxGui.PlayerListContainer.ScrollList[v.Name].BGFrame.PlayerName.TextColor3 = Color3.new(1, 170/255, 0)
  432. elseif role.Value == "Innocent" then
  433. game.CoreGui.RobloxGui.PlayerListContainer.ScrollList[v.Name].BGFrame.PlayerName.TextColor3 = Color3.new(0, 1, 0)
  434. else
  435. game.CoreGui.RobloxGui.PlayerListContainer.ScrollList[v.Name].BGFrame.PlayerName.TextColor3 = Color3.new(1, 1, 1)
  436. end
  437. else
  438. game.CoreGui.RobloxGui.PlayerListContainer.ScrollList[v.Name].BGFrame.PlayerName.TextColor3 = Color3.new(1, 1, 1)
  439. end
  440. end
  441. for i, v in pairs(LKill) do
  442. if v ~= nil and v.Character ~= nil then
  443. game.ReplicatedStorage.Event:FireServer("TPD", 20000, v.Character:FindFirstChild("Humanoid"))
  444. end
  445. end
  446. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement