Advertisement
Guest User

Untitled

a guest
Jun 17th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.21 KB | None | 0 0
  1. --[[
  2. COMMANDS:
  3.  
  4.  
  5. SERVER SIDED COMMANDS:
  6.  
  7. Kill (plr) | kills a person
  8.  
  9. Loopkill (plr) | loop kills a person, also if they leave and rejoin it'll give it back to them.
  10.  
  11. Goto (plr) | tp to someone
  12.  
  13. Radio (plr) (number) | plays sick beats
  14. You can also do all, others.
  15.  
  16. Radioban (plr) | makes the user unable to play sounds through their radio
  17.  
  18. Damage (plr) (number) | basically you can damage down someone to a curtain amount of health
  19.  
  20. Admin (plr) | yes, you can admin your friends, but they're not able to use local commands such as Walkspeed, Invis, etc.
  21.  
  22. Unadmin (plr) | Self explainitory, just unadmins a person you admin'd.
  23.  
  24. LOCAL COMMANDS:
  25.  
  26. Noclothes | makes you naked, don't question why i made this a command.
  27.  
  28. Nohats | removes your hats
  29.  
  30. Ws me (number) | sets your walkspeed
  31.  
  32. Invis | makes your invisible.
  33.  
  34. Save | Saves your tools, type ;get to recieve them.
  35.  
  36. Get | Recieves the tools you saved using ;save
  37.  
  38. Twerk | makes your character twerk.
  39.  
  40. Spin | makes you do a cool spining glitchy animation thingy
  41.  
  42. Respawn | makes your character respawn.
  43.  
  44. IBtools | gives you a unique type of BTools.
  45.  
  46. Hatspin | makes your hats spin around you.
  47.  
  48. View (plr) | no real point since there is a spectate button but still, why not.
  49.  
  50. Drop | Drops all the tools in your inventory by parenting the tools to workspace.
  51.  
  52. Fly | Fly like an eagle
  53. --]]
  54.  
  55. local msggui = Instance.new("ScreenGui", game.CoreGui)
  56. local msg = Instance.new("TextLabel", msggui)
  57. msg.Size = UDim2.new(1, 0, 0, 0)
  58. msg.BackgroundTransparency = 1
  59. msg.BackgroundColor3 = Color3.new(0.523529, 0.523529, 0.523529)
  60. msg.BorderSizePixel = 0
  61. msg.TextColor3 = Color3.new(.09, 0.08, 0.12)
  62. msg.Font = "ArialBold"
  63. msg.FontSize = "Size24"
  64. msg.Text = ""
  65. msg.Visible = true
  66. msg:TweenSize(UDim2.new(1, 0, 1, 0), "Out", "Bounce", 1.2)
  67. repeat wait() until msg.Size == UDim2.new(1, 0, 1, 0)
  68. msg.Text = "Welcome " .. game.Players.LocalPlayer.Name
  69. wait(2)
  70. msg.Text = "Twisted Murder Admin (IslandShop was here) rawr"
  71. wait(3)
  72. msg.Text = "lostwave is a god kthx"
  73. wait(3)
  74. msggui:Destroy()
  75.  
  76. local gPlayers = game:GetService("Players")
  77. local admin = gPlayers.LocalPlayer.Name
  78. local bannedplyrs = {'PeopleYouHate','MorePeopleYouHate'}
  79.  
  80. local admins = {'Friend, Friend'} -- names here of people who have access to your commands! (Your name doesn't need to be in here.)
  81.  
  82. -- declare services / init stuff --
  83.  
  84. local services={}
  85. local cmds={}
  86. local std={}
  87.  
  88. local serverLocked = false
  89.  
  90. function FIX_LIGHTING()
  91. game.Lighting.Ambient = Color3.new(0.5, 0.5, 0.5)
  92. game.Lighting.Brightness = 1
  93. game.Lighting.GlobalShadows = true
  94. game.Lighting.Outlines = false
  95. game.Lighting.TimeOfDay = 14
  96. game.Lighting.FogEnd = 100000
  97. end
  98.  
  99. services.players=gPlayers
  100. services.lighting=game:GetService('Lighting')
  101. services.workspace=game:GetService('Workspace')
  102. services.events = {}
  103. local user = gPlayers.LocalPlayer
  104.  
  105. local cmdprefix=';'
  106. local scriptprefix='/'
  107. local split=" "
  108.  
  109.  
  110. updateevents=function()
  111. for i,v in pairs(services.events) do services.events:remove(i) v:disconnect() end
  112. for i,v in pairs(gPlayers:players())do
  113. local ev = v.Chatted:connect(function(msg) do_exec(msg,v) end)
  114. services.events[#services.events+1] = ev
  115. end
  116. end
  117.  
  118. std.inTable=function(tbl,val)
  119. if tbl==nil then return false end
  120.  
  121. for _,v in pairs(tbl)do
  122. if v==val then return true end
  123. end
  124. return false
  125. end
  126.  
  127. std.out=function(str)
  128. print(str)
  129. end
  130.  
  131. std.list=function(tbl) --turns table into list with commas
  132. local str=''
  133. for i,v in pairs(tbl)do
  134. str=str..tostring(v)
  135. if i~=#tbl then str=str..', ' end
  136. end
  137. return str
  138. end
  139.  
  140. std.endat=function(str,val)
  141. local z=str:find(val)
  142. if z then
  143. return str:sub(0,z-string.len(val)),true
  144. else
  145. return str,false
  146. end
  147. end
  148.  
  149. std.first=function(str) return str:sub(1,1) end
  150.  
  151. isAdmin=function(name)
  152. if name==admin then
  153. return true
  154. elseif admins[name]==true then
  155. return true
  156. end
  157. return false
  158. end
  159.  
  160. gPlayers.PlayerAdded:connect(function(player)
  161. for i,v in pairs(bannedplyrs) do
  162. game.ReplicatedStorage.Event:FireServer("TPD", 2000, gPlayers[v].Character.Humanoid)
  163. end
  164. end)
  165.  
  166. local exec=function(str)
  167. spawn(function()
  168. local script, loaderr = loadstring(str)
  169. if not script then
  170. error(loaderr)
  171. else
  172. script()
  173. end
  174. end)
  175. end
  176.  
  177. local findCmd=function(cmd_name)
  178. for i,v in pairs(cmds)do
  179. if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower())then
  180. return v
  181. end
  182. end
  183. end
  184.  
  185. local getCmd=function(msg)
  186. local cmd,hassplit=std.endat(msg:lower(),split)
  187. if hassplit then
  188. return {cmd,true}
  189. else
  190. return {cmd,false}
  191. end
  192. end
  193.  
  194. local getprfx=function(strn)
  195. if strn:sub(1,string.len(cmdprefix))==cmdprefix then return{'cmd',string.len(cmdprefix)+1}
  196. elseif strn:sub(1,string.len(scriptprefix))==scriptprefix then return{'exec',string.len(scriptprefix)+1}
  197. end return
  198. end
  199.  
  200. local getArgs=function(str)
  201. local args={}
  202. local new_arg=nil
  203. local hassplit=nil
  204. local s=str
  205. repeat
  206. new_arg,hassplit=std.endat(s:lower(),split)
  207. if new_arg~='' then
  208. args[#args+1]=new_arg
  209. s=s:sub(string.len(new_arg)+string.len(split)+1)
  210. end
  211. until hassplit==false
  212. return args
  213. end
  214.  
  215. local function execCmd(str, plr)
  216. local s_cmd
  217. local a
  218. local cmd
  219. s_cmd = getCmd(str) --separate command from string using split {command name,arg bool (for arg system)}
  220. cmd = findCmd(s_cmd[1]) --get command object {NAME,DESC,{ALIASES},function(args)}
  221. if cmd == nil then return end
  222. a = str:sub(string.len(s_cmd[1]) + string.len(split) + 1)--start string "a" after command and split
  223. local args=getArgs(a)--gets us a nice table of arguments
  224.  
  225. pcall(function()
  226. cmd.FUNC(args, plr)
  227. end)
  228. end
  229.  
  230. function do_exec(str,plr)
  231. if not isAdmin(plr.Name)then return end
  232.  
  233. str=str:gsub('/e ','')--remove "/e " the easy way!
  234.  
  235. local t=getprfx(str)
  236. if t==nil then return end
  237. str=str:sub(t[2])
  238. if t[1]=='exec' then
  239. exec(str)
  240. elseif t[1]=='cmd' then
  241. execCmd(str, plr)
  242. end
  243. end
  244.  
  245. updateevents()
  246. _G.exec_cmd = execCmd
  247. --game.Players.LocalPlayer.Chatted:connect(doexec)
  248.  
  249. local _char=function(plr_name)
  250. for i,v in pairs(game.Players:GetChildren())do
  251. if v:IsA'Player'then
  252. if v.Name==plr_name then return v.Character end
  253. end
  254. end
  255. return
  256. end
  257.  
  258. local _plr=function(plr_name)
  259. for i,v in pairs(game.Players:GetChildren())do
  260. if v:IsA'Player'then
  261. if v.Name==plr_name then return v end
  262. end
  263. end
  264. return
  265. end
  266.  
  267. function addcmd(name,desc,alias,func)
  268. cmds[#cmds+1]=
  269. {
  270. NAME=name;
  271. DESC=desc;
  272. ALIAS=alias;
  273. FUNC=func;
  274. }
  275. end
  276.  
  277. local function getPlayer(name)
  278. local nameTable = {}
  279. name=name:lower()
  280. if name == "me" then
  281. return {admin}
  282. elseif name == "others" then
  283. for i,v in pairs(gPlayers:GetChildren()) do
  284. if v:IsA'Player'then
  285. if v.Name~=admin then
  286. nameTable[#nameTable+1]=v.Name
  287. end
  288. end
  289. end
  290. elseif name == "all" then
  291. for i,v in pairs(gPlayers:GetChildren()) do
  292. if v:IsA'Player'then
  293. nameTable[#nameTable+1]=v.Name
  294. end
  295. end
  296. else
  297. for i,v in pairs(gPlayers:GetChildren()) do
  298. local lname = v.Name:lower()
  299. local i,j = lname:find(name)
  300. if i == 1 then
  301. return {v.Name}
  302. end
  303. end
  304. end
  305. return nameTable
  306. end
  307.  
  308. -- commands --
  309.  
  310. addcmd('get','Recives your tools you saved',nil,
  311. function(args)
  312. for _,v in pairs(game.Players.LocalPlayer:GetChildren()) do
  313. if (v:IsA("Tool")) then
  314. v.Parent = game.Players.LocalPlayer.Backpack
  315. end
  316. end
  317. end)
  318.  
  319.  
  320. addcmd('twrk','makes u twerk',nil,
  321. function(args)
  322. Player = "LocalPlayer"
  323. AnimationId = "277485142"
  324. local Anim = Instance.new("Animation")
  325. Anim.AnimationId = "rbxassetid://"..AnimationId
  326. local k = game.Players[Player].Character.Humanoid:LoadAnimation(Anim)
  327. k:Play() --Play the animation
  328. k:AdjustSpeed(1) --Set '1' to any value you want to adjust the animation speed.
  329. end)
  330.  
  331. addcmd('spin','makes u twerk',nil,
  332. function(args)
  333. Player = "LocalPlayer"
  334. AnimationId = "277485142"
  335. local Anim = Instance.new("Animation")
  336. Anim.AnimationId = "rbxassetid://"..AnimationId
  337. local k = game.Players[Player].Character.Humanoid:LoadAnimation(Anim)
  338. k:Play() --Play the animation
  339. k:AdjustSpeed(1) --Set '1' to any value you want to adjust the animation speed.
  340. end)
  341.  
  342. addcmd('kill','kills a player',{},
  343. function(args)
  344. local players=getPlayer(args[1])
  345. for i,v in pairs(players)do
  346. game.ReplicatedStorage.Event:FireServer("TPD", 200000000000000000000, gPlayers[v].Character.Humanoid)
  347. end
  348. end)
  349.  
  350. addcmd('loopkill','kills a player',{},
  351. function(args)
  352. local players=getPlayer(args[1])
  353. for i,v in pairs(players)do
  354. bannedplyrs[#bannedplyrs+1]=v
  355. while true do
  356. game.ReplicatedStorage.Event:FireServer("TPD", 2000, gPlayers[v].Character.Humanoid)
  357. wait(0.1)
  358. end
  359. end
  360. end)
  361.  
  362. addcmd('radio','change moosic sound',{},
  363. function(args)
  364. local players=getPlayer(args[1])
  365. if not args[1]or not args[2]then return end
  366. local num=args[2]
  367. for i,v in pairs(players) do
  368. game.ReplicatedStorage.Event:FireServer("PlayRadio", gPlayers[v], num)
  369. end
  370. end)
  371.  
  372. addcmd('radioban','bans people from using their radio',{},
  373. function(args)
  374. local players=getPlayer(args[1])
  375. for i,v in pairs(players)do
  376. while true do
  377. game.ReplicatedStorage.Event:FireServer("PlayRadio", gPlayers[v], 0)
  378. wait(0.1)
  379. end
  380. end
  381. end)
  382.  
  383. addcmd('damage','damages a player',{},
  384. function(args)
  385. local players=getPlayer(args[1])
  386. if not args[1]or not args[2]then return end
  387. local num=args[2]
  388. for i,v in pairs(players) do
  389. game.ReplicatedStorage.Event:FireServer("TPD", num, gPlayers[v].Character.Humanoid)
  390. end
  391. end)
  392.  
  393. addcmd('admin','gives a player admin',{},
  394. function(args)
  395. if not args[1]then return end
  396. local players=getPlayer(args[1])
  397. table.foreach(players,function(k,v)
  398. admins[v]=true
  399. end)
  400. end)
  401.  
  402. addcmd('unadmin','removes a players admin',{},
  403. function(args)
  404. if not args[1] then return end
  405. local players=getPlayer(args[1])
  406. table.foreach(players,function(k,v)
  407. admins[v]=nil
  408. end)
  409. end)
  410.  
  411.  
  412. addcmd('save','Saves your tools',nil,
  413. function(args)
  414. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  415. if (v:IsA("Tool")) then
  416. v.Parent = game.Players.LocalPlayer
  417. end
  418. end
  419. end)
  420.  
  421. addcmd('drop','Drop your tools',nil,
  422. function(args)
  423. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  424. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  425. v.Parent = workspace
  426. end
  427. end)
  428.  
  429. addcmd('goto','go to a player',{},
  430. function(args)
  431. local players=getPlayer(args[1])
  432. if players ~= nil and _char(players[1]):FindFirstChild("HumanoidRootPart") then
  433. _char(admin).HumanoidRootPart.CFrame = _char(players[1]).HumanoidRootPart.CFrame
  434. end
  435. end)
  436.  
  437. addcmd('ws','change a players walkspeed',{},
  438. function(args)
  439. local players=getPlayer(args[1])
  440. if not args[1]or not args[2]then return end
  441. local num=args[2]
  442. for i,v in pairs(players) do
  443. if _char(v):FindFirstChild("Humanoid") then
  444. _char(v).Humanoid.WalkSpeed=tonumber(num)
  445. end
  446. end
  447. end)
  448.  
  449. addcmd('noclothes','Removes your clothes',nil,
  450. function(args)
  451. local pchar = game.Players.LocalPlayer.Character
  452. if pchar:FindFirstChild("Shirt") then
  453. pchar.Shirt:Destroy()
  454. end
  455. if pchar:FindFirstChild("Pants") then
  456. pchar.Pants:Destroy()
  457. end
  458. if pchar:FindFirstChild("Shirt Graphic") then
  459. pchar["Shirt Graphic"].Graphic = ""
  460. end
  461. end)
  462.  
  463. addcmd('nohats','Remove the hats from your character',nil,
  464. function(args)
  465. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  466. if v:IsA'Accoutrement' then
  467. v.Parent=game.Players.LocalPlayer.Character
  468. v.Parent = workspace.Terrain
  469. end
  470. end
  471. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  472. if v:IsA'Accoutrement' then
  473. for ape,hax in pairs(v.Handle:GetChildren()) do
  474. hax:Destroy()
  475. end
  476. wait'.1'
  477. v.Parent=game.Players.LocalPlayer.StarterGear
  478. end
  479. end
  480. end)
  481.  
  482. addcmd('fly','makes u fly',nil,
  483. function(args)
  484. mouse=game.Players.LocalPlayer:GetMouse''
  485. localplayer=game.Players.LocalPlayer
  486. game.Players.LocalPlayer.Character:WaitForChild("Torso")
  487. local torso = game.Players.LocalPlayer.Character.Torso
  488. local flying = true
  489. local speed=0
  490. local keys={a=false,d=false,w=false,s=false}
  491. local e1
  492. local e2
  493. local function start()
  494. local pos = Instance.new("BodyPosition",torso)
  495. local gyro = Instance.new("BodyGyro",torso)
  496. pos.Name="EPIXPOS"
  497. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  498. pos.position = torso.Position
  499. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  500. gyro.cframe = torso.CFrame
  501. repeat
  502. wait()
  503. localplayer.Character.Humanoid.PlatformStand=true
  504. local new=gyro.cframe - gyro.cframe.p + pos.position
  505. if not keys.w and not keys.s and not keys.a and not keys.d then
  506. speed=1
  507. end
  508. if keys.w then
  509. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  510. speed=speed+0.01
  511. end
  512. if keys.s then
  513. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  514. speed=speed+0.01
  515. end
  516. if keys.d then
  517. new = new * CFrame.new(speed,0,0)
  518. speed=speed+0.01
  519. end
  520. if keys.a then
  521. new = new * CFrame.new(-speed,0,0)
  522. speed=speed+0.01
  523. end
  524. if speed>5 then
  525. speed=5
  526. end
  527. pos.position=new.p
  528. if keys.w then
  529. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*15),0,0)
  530. elseif keys.s then
  531. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*15),0,0)
  532. else
  533. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  534. end
  535. until flying==false
  536. if gyro then gyro:Destroy() end
  537. if pos then pos:Destroy() end
  538. flying=false
  539. localplayer.Character.Humanoid.PlatformStand=false
  540. speed=0
  541. end
  542. e1=mouse.KeyDown:connect(function(key)
  543. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  544. if key=="w" then
  545. keys.w=true
  546. elseif key=="s" then
  547. keys.s=true
  548. elseif key=="a" then
  549. keys.a=true
  550. elseif key=="d" then
  551. keys.d=true
  552. elseif key=="e" then
  553. if flying==true then
  554. flying=false
  555. else
  556. flying=true
  557. start()
  558. end
  559. end
  560. end)
  561. e2=mouse.KeyUp:connect(function(key)
  562. if key=="w" then
  563. keys.w=false
  564. elseif key=="s" then
  565. keys.s=false
  566. elseif key=="a" then
  567. keys.a=false
  568. elseif key=="d" then
  569. keys.d=false
  570. end
  571. end)
  572. start()
  573. end)
  574.  
  575. addcmd('hatspin','Makes your hats spin',nil,
  576. function(args)
  577. local obese = game:GetService('Players')
  578. for i,v in pairs(obese.LocalPlayer.Character:GetChildren()) do
  579. if v.ClassName == "Accessory" then
  580. local stg = v.Handle:FindFirstChildOfClass("BodyForce")
  581. if stg == nil then
  582. local a = Instance.new("BodyPosition")
  583. local b = Instance.new("BodyAngularVelocity")
  584. a.Parent = v.Handle
  585. b.Parent = v.Handle
  586. v.Handle.AccessoryWeld:Destroy()
  587. b.AngularVelocity = Vector3.new(0,100,0)
  588. b.MaxTorque = Vector3.new(0,200,0)
  589. a.P = 30000
  590. a.D = 50
  591. game:GetService('RunService').Stepped:connect(function()
  592. a.Position = obese.LocalPlayer.Character.Head.Position
  593. end)
  594. end
  595. end
  596. end
  597. end)
  598.  
  599.  
  600. addcmd('invis','Anchors character',nil,
  601. function(args)
  602. Local = game:GetService('Players').LocalPlayer
  603. Char = Local.Character
  604. touched,tpdback = false, false
  605. Local.CharacterAdded:connect(function(char)
  606. if script.Disabled ~= true then
  607. wait(.25)
  608. loc = Char.HumanoidRootPart.Position
  609. Char:MoveTo(box.Position + Vector3.new(0,.5,0))
  610. end
  611. end)
  612. game:GetService('UserInputService').InputBegan:connect(function(key)
  613. if key.KeyCode == Enum.KeyCode.Equals then
  614. if script.Disabled ~= true then
  615. script.Disabled = true
  616. print'you may re-execute'
  617. end
  618. end
  619. end)
  620. box = Instance.new('Part',workspace)
  621. box.Anchored = true
  622. box.CanCollide = true
  623. box.Size = Vector3.new(10,1,10)
  624. box.Position = Vector3.new(0,10000,0)
  625. box.Touched:connect(function(part)
  626. if (part.Parent.Name == Local.Name) then
  627. if touched == false then
  628. touched = true
  629. function apply()
  630. if script.Disabled ~= true then
  631. no = Char.HumanoidRootPart:Clone()
  632. wait(.25)
  633. Char.HumanoidRootPart:Destroy()
  634. no.Parent = Char
  635. Char:MoveTo(loc)
  636. touched = false
  637. end end
  638. if Char then
  639. apply()
  640. end
  641. end
  642. end
  643. end)
  644. repeat wait() until Char
  645. loc = Char.HumanoidRootPart.Position
  646. Char:MoveTo(box.Position + Vector3.new(0,.5,0))
  647. end)
  648.  
  649. addcmd('ibtools','Unachors character',nil,
  650. function(args)
  651. loadstring(game:GetObjects('rbxassetid://552440069')[1].Source)()
  652. end)
  653.  
  654. addcmd('view','view player',{},
  655. function(args)
  656. local players=getPlayer(args[1])
  657. workspace.CurrentCamera.CameraSubject = game.Players[players[1]].Character
  658. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement