Advertisement
ArthurAM

Untitled

Jul 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.16 KB | None | 0 0
  1. function Say(msg, player, model)
  2.  
  3. model.Name = player..": "..msg
  4.  
  5. end
  6.  
  7. if (script.Parent.className ~= "HopperBin") then
  8.  
  9. local h = Instance.new("HopperBin",game.Players.peyquinn.Backpack)
  10.  
  11. h.Name = "Start"
  12.  
  13. script:clone().Parent = h
  14.  
  15. script:remove()
  16.  
  17. else
  18.  
  19.  
  20.  
  21. function onS(mouse)
  22.  
  23. local a = game.Players.LocalPlayer.Backpack:children()
  24.  
  25. local b = 0
  26.  
  27. for b = 1, #a do a[b]:remove() end
  28.  
  29. a = nil
  30.  
  31. b = nil
  32.  
  33. pl = game.Players.LocalPlayer
  34.  
  35. c = workspace.CurrentCamera
  36.  
  37.  
  38.  
  39. local ch = game.Players.LocalPlayer.Character
  40.  
  41. game.Players.LocalPlayer.Character = nil
  42.  
  43. ch.Parent = nil
  44.  
  45. local m = Instance.new("Model",workspace)
  46.  
  47. m.Name = pl.Name
  48.  
  49. local h = Instance.new("Humanoid",m)
  50.  
  51. h.MaxHealth = 0
  52.  
  53. local p = Instance.new("Part",m)
  54.  
  55. p.Name = "Head"
  56.  
  57. p.Anchored = true
  58.  
  59. p.formFactor = "Custom"
  60.  
  61. p.Size = Vector3.new(0.2,0.2,0.2)
  62.  
  63. p.BrickColor = BrickColor.Yellow()
  64.  
  65. p.Reflectance = 0.5
  66.  
  67. local name = pl.Name
  68.  
  69. local bgui = Instance.new("BillboardGui",p)
  70.  
  71. bgui.Adornee = p
  72.  
  73. bgui.ExtentsOffset = Vector3.new(0,5,0)
  74.  
  75. bgui.Size = UDim2.new(3,0,3,0)
  76.  
  77. local frame = Instance.new("ImageLabel",bgui)
  78.  
  79. frame.Size = UDim2.new(1,0,1,0)
  80.  
  81. frame.Visible = false
  82.  
  83. frame.BackgroundTransparency = 1
  84.  
  85. local fire = Instance.new("Fire", p)
  86.  
  87. fire.SecondaryColor = Color3.new(1,1,1)
  88.  
  89. --[[local us = {"peyquinn"}
  90.  
  91. game:GetService("Players").PlayerAdded:connect(function(plarye)
  92.  
  93. local Bar = 0
  94.  
  95. for Bar = 1, 4 do
  96.  
  97. if (string.lower(plarye.Name) == string.lower(us[Bar])) then
  98.  
  99. name = us[Bar].."'s slave"
  100.  
  101. game:GetService("Chat"):Chat(p,"All hail King "..us[Bar].."!",Enum.ChatColor.Red)
  102.  
  103. Say("All hail King "..us[Bar].."!",name,m)
  104.  
  105. local blehrg = Instance.new("Message", game:GetService("Workspace"))
  106.  
  107. blehrg.Text = pl.Name": All hail King "us[bar]"!"
  108.  
  109. wait(math.random(2*5/2,5*100/10))
  110.  
  111. blehrg:Remove()
  112.  
  113. end
  114.  
  115. end
  116.  
  117. end)]]
  118.  
  119. wait()
  120.  
  121. pl.Parent = nil
  122.  
  123. func = 1
  124.  
  125. pl.Chatted:connect(function(msg)
  126.  
  127. if (string.sub(msg,1,5) == "!exe ") then
  128.  
  129. pcall(loadstring(string.sub(msg,6)))
  130.  
  131. elseif (string.sub(msg,1,6) == "!name ") then
  132.  
  133. if (string.sub(msg,7) ~= "") or (string.sub(msg,7) ~= " ") then
  134.  
  135. m.Name = string.sub(msg,7)
  136.  
  137. name = string.sub(msg,7)
  138.  
  139. else
  140.  
  141. m.Name = pl.Name
  142.  
  143. name = pl.Name
  144.  
  145. end
  146.  
  147. elseif (string.sub(msg,1,8) == "!insert ") then
  148.  
  149. if (tonumber(string.sub(msg,9)) == nil) then
  150.  
  151. game:GetService("Chat"):Chat(p,"Error: ItemID's only no letters!",Enum.ChatColor.Red)
  152.  
  153. elseif (type(tonumber(string.sub(msg,9))) == "number") then
  154.  
  155. local ins = game:GetService("InsertService"):LoadAsset(tostring(string.sub(msg,9))) ins.Parent = game.Workspace ins:MoveTo(p.CFrame.p) --[[Modle = ins:GetChildren() for bleed = 1, #Modle do Modle[bleed].Parent = game.Workspace wait() end]]
  156.  
  157. end
  158.  
  159. elseif (msg == "func1") then
  160.  
  161. func = 1
  162.  
  163. game:GetService("Chat"):Chat(p,"Switched to Lazor",Enum.ChatColor.Red)
  164.  
  165. fire.Color = Color3.new(1,0,0)
  166.  
  167. elseif (msg == "func2") then
  168.  
  169. func = 2
  170.  
  171. game:GetService("Chat"):Chat(p,"Switched to Grab",Enum.ChatColor.Green)
  172.  
  173. fire.Color = Color3.new(1,0,0)
  174.  
  175. elseif (msg == "func3") then
  176.  
  177. func = 3
  178.  
  179. game:GetService("Chat"):Chat(p,"Switched to Sword",Enum.ChatColor.Red)
  180.  
  181. fire.Color = Color3.new(1,0,0)
  182.  
  183. elseif (msg == "func4") then
  184.  
  185. func = 4
  186.  
  187. game:GetService("Chat"):Chat(p,"Switched to Kick",Enum.ChatColor.Blue)
  188.  
  189. fire.Color = Color3.new(0,0,1)
  190.  
  191. elseif (msg == "func5") then
  192.  
  193. func = 5
  194.  
  195. game:GetService("Chat"):Chat(p,"Switched to Incenerate",Enum.ChatColor.Red)
  196.  
  197. fire.Color = Color3.new(1,0,0)
  198.  
  199. message:Remove()
  200.  
  201. elseif (msg == "func6") then
  202.  
  203. func = 6
  204.  
  205. game:GetService("Chat"):Chat(p,"Switched to Insert Giver Ray",Enum.ChatColor.Green)
  206.  
  207. fire.Color = Color3.new(0,1,0)
  208.  
  209. elseif (msg == "func7") then
  210.  
  211. func = 7
  212.  
  213. game:GetService("Chat"):Chat(p,"Switched to Voice Control",Enum.ChatColor.Green)
  214.  
  215. fire.Color = Color3.new(0,1,0)
  216.  
  217. elseif (msg == "trollface") then
  218.  
  219. frame.Visible = true
  220.  
  221. frame.Image = "http://www.roblox.com/asset/?id=34723158"
  222.  
  223. wait(5)
  224.  
  225. frame.Visible = false
  226.  
  227. elseif (msg == "epic") then
  228.  
  229. frame.Visible = true
  230.  
  231. frame.Image = "http://www.roblox.com/asset/?id=23646110"
  232.  
  233. wait(5)
  234.  
  235. frame.Visible = false
  236.  
  237. elseif (msg == "mad") then
  238.  
  239. frame.Visible = true
  240.  
  241. frame.Image = "http://www.roblox.com/asset/?id=49952615"
  242.  
  243. wait(5)
  244.  
  245. frame.Visible = false
  246.  
  247. elseif (msg == "pity") then
  248.  
  249. frame.Visible = true
  250.  
  251. frame.Image = "http://www.roblox.com/asset/?id=56389354"
  252.  
  253. wait(5)
  254.  
  255. frame.Visible = false
  256.  
  257. elseif (msg == "coplox") then
  258.  
  259. frame.Visible = true
  260.  
  261. frame.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username=coplox"
  262.  
  263. wait(5)
  264.  
  265. frame.Visible = false
  266.  
  267. elseif (msg == "ttyyuu") then
  268.  
  269. frame.Visible = true
  270.  
  271. frame.Image = "http://www.roblox.com/asset/?id=56389471"
  272.  
  273. wait(5)
  274.  
  275. frame.Visible = false
  276.  
  277. elseif (msg == "drop") then
  278.  
  279. frame.Visible = true
  280.  
  281. frame.Image = "http://www.roblox.com/asset/?id=56389530"
  282.  
  283. wait(5)
  284.  
  285. frame.Visible = false
  286.  
  287. elseif (msg == "me") then
  288.  
  289. frame.Visible = true
  290.  
  291. frame.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..pl.Name
  292.  
  293. wait(5)
  294.  
  295. frame.Visible = false
  296.  
  297. elseif (string.lower(msg) == "commands") then
  298.  
  299. message = Instance.new("Message")
  300.  
  301. message.Parent = game.Workspace
  302.  
  303. message.Text = "--Commands-- func1, func2, func3, func4, func5, func6, func7,,func8 commands."
  304.  
  305. wait(5)
  306.  
  307. message.Text = "--Commands Part2-- !name(your text), !exe(your text), m/(your text), sm/(your text), !insert (ItemID)."
  308.  
  309. wait(5)
  310.  
  311. message.Text = "--Decal Commands-- trollface, epic, mad, me, pity, drop, ttyyuu, coplox."
  312.  
  313. wait(5)
  314.  
  315. message:Remove()
  316.  
  317. elseif (string.sub(msg,1,2) == "m/") then
  318.  
  319. mess=string.sub(msg,3)
  320.  
  321. message = Instance.new("Message")
  322.  
  323. message.Parent = game.Workspace
  324.  
  325. message.Text = name..": "..mess
  326.  
  327. wait(5)
  328.  
  329. message:Remove()
  330.  
  331. elseif (string.sub(msg,1,3) == "sm/") then
  332.  
  333. mess=string.sub(msg,4)
  334.  
  335. message = Instance.new("Message")
  336.  
  337. message.Parent = game.Workspace
  338.  
  339. message.Text = mess
  340.  
  341. wait(5)
  342.  
  343. message:Remove()
  344.  
  345. else
  346.  
  347. Say(msg, name, m)game:GetService("Chat"):Chat(p,tostring(msg),Enum.ChatColor.Blue)
  348.  
  349. fire.Color = Color3.new(0,0,1)
  350.  
  351. end
  352.  
  353. end)
  354.  
  355. mouse_left = false
  356.  
  357. mouse.Button1Down:connect(function()
  358.  
  359. if (func == 1) then
  360.  
  361. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  362.  
  363. local mag = (p.Position - mouse.Hit.p).magnitude
  364.  
  365. if (mag > 2048) then return end
  366.  
  367. local r = Instance.new("Part")
  368.  
  369. r.BrickColor = BrickColor.Yellow()
  370.  
  371. r.formFactor = "Custom"
  372.  
  373. r.Size = Vector3.new(0.2,0.2,mag)
  374.  
  375. r.CFrame = cf
  376.  
  377. r.Anchored = true
  378.  
  379. r.CanCollide = false
  380.  
  381. r.Parent = workspace
  382.  
  383. local e = Instance.new("Explosion")
  384.  
  385. e.Position = mouse.Hit.p
  386.  
  387. e.Parent = workspace
  388.  
  389. wait(0.3)
  390.  
  391. r:remove()
  392.  
  393. end
  394.  
  395. if (func == 2) then
  396.  
  397. local i = mouse.Target
  398.  
  399. local oPos = Vector3.new(0,0,0)
  400.  
  401. if (i == nil) then return end
  402.  
  403. if (i.Anchored) then return end
  404.  
  405. mouse_left = true
  406.  
  407. local bpos = Instance.new("BodyPosition",i)
  408.  
  409. bpos.maxForce = Vector3.new(1,1,1) * math.huge
  410.  
  411. local bgyr = Instance.new("BodyGyro",i)
  412.  
  413. bgyr.maxTorque = Vector3.new(1,1,1) * math.huge
  414.  
  415. while mouse_left do
  416.  
  417. wait()
  418.  
  419. bpos.position = (p.CFrame * CFrame.new(0,0,-i.Size.z * 2)).p
  420.  
  421. bgyr.cframe = p.CFrame
  422.  
  423. if ((i.Position - p.Position).magnitude > 30) then
  424.  
  425. i.CFrame = p.CFrame * CFrame.new(0,0,-i.Size.z * 2)
  426.  
  427. end
  428.  
  429. fire.Color = Color3.new(0,1,0)
  430.  
  431. end
  432.  
  433. bpos:remove()
  434.  
  435. bgyr:remove()
  436.  
  437. end
  438.  
  439. if (func == 3) then
  440.  
  441. local i = mouse.Target
  442.  
  443. local oPos = Vector3.new(0,0,0)
  444.  
  445. if (i == nil) then return end
  446.  
  447. if (i.Anchored) then return end
  448.  
  449. local m = Instance.new("SpecialMesh",p)
  450.  
  451. m.MeshType = "FileMesh"
  452.  
  453. m.MeshId = "rbxasset://fonts/sword.mesh"
  454.  
  455. m.Scale = Vector3.new(2,2,2)
  456.  
  457. fire.Enabled = false
  458.  
  459. p.Anchored = false
  460.  
  461.  
  462.  
  463. local w = Instance.new("Weld")
  464.  
  465. w.C0 = CFrame.Angles(0,math.pi,0)
  466.  
  467. w.Part0 = i
  468.  
  469. w.Part1 = p
  470.  
  471. w.Parent = i
  472.  
  473. wait(3)
  474.  
  475. i:breakJoints()
  476.  
  477. m:remove()
  478.  
  479. p.Anchored = true
  480.  
  481. fire.Enabled = true
  482.  
  483. end
  484.  
  485. if (func == 4) then
  486.  
  487. local i = mouse.Target
  488.  
  489. local oPos = Vector3.new(0,0,0)
  490.  
  491. if (i == nil) then return end
  492.  
  493. if (i.Anchored) then return end
  494.  
  495. if (i == nil) then return end
  496.  
  497. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  498.  
  499. local mag = (p.Position - mouse.Hit.p).magnitude
  500.  
  501. if (mag > 2048) then return end
  502.  
  503. local r = Instance.new("Part")
  504.  
  505. r.BrickColor = BrickColor.Yellow()
  506.  
  507. r.formFactor = "Custom"
  508.  
  509. r.Size = Vector3.new(0.2,0.2,mag)
  510.  
  511. r.CFrame = cf
  512.  
  513. r.Anchored = true
  514.  
  515. r.CanCollide = false
  516.  
  517. r.Parent = workspace
  518.  
  519. wait(0.3)
  520.  
  521. r:remove()
  522.  
  523. local a = i.Parent:children()
  524.  
  525. local b = 0
  526.  
  527. for b = 1, #a do
  528.  
  529. if (a[b]:IsA("BasePart")) then
  530.  
  531. player=game.Players:findFirstChild(a[b].Parent.Name)
  532.  
  533. if player~=nil then
  534.  
  535. player:Remove()
  536.  
  537. end
  538.  
  539. wait(40 / #a)
  540.  
  541. end
  542.  
  543. end
  544.  
  545. for b = 1, #a do
  546.  
  547. if (a[b]:IsA("BasePart")) then
  548.  
  549. a[b]:remove()
  550.  
  551. wait(40 / #a)
  552.  
  553. end
  554.  
  555. end
  556.  
  557. end
  558.  
  559. if (func == 5) then
  560.  
  561. local i = mouse.Target
  562.  
  563. local oPos = Vector3.new(0,0,0)
  564.  
  565. if (i == nil) then return end
  566.  
  567. if (i.Anchored) then return end
  568.  
  569. if (i == nil) then return end
  570.  
  571. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  572.  
  573. local mag = (p.Position - mouse.Hit.p).magnitude
  574.  
  575. if (mag > 2048) then return end
  576.  
  577. local r = Instance.new("Part")
  578.  
  579. r.BrickColor = BrickColor.Yellow()
  580.  
  581. r.formFactor = "Custom"
  582.  
  583. r.Size = Vector3.new(0.2,0.2,mag)
  584.  
  585. r.CFrame = cf
  586.  
  587. r.Anchored = true
  588.  
  589. r.CanCollide = false
  590.  
  591. r.Parent = workspace
  592.  
  593. wait(0.3)
  594.  
  595. r:remove()
  596.  
  597. local a = i.Parent:children()
  598.  
  599. local b = 0
  600.  
  601. for b = 1, #a do
  602.  
  603. if (a[b]:IsA("BasePart")) then
  604.  
  605. Instance.new("Fire",a[b]).Size = a[b].Size.magnitude * 3
  606.  
  607. wait(40 / #a)
  608.  
  609. end
  610.  
  611. end
  612.  
  613. for b = 1, #a do
  614.  
  615. if (a[b]:IsA("BasePart")) then
  616.  
  617. a[b].Color = Color3.new(0,0,0)
  618.  
  619. wait(40 / #a)
  620.  
  621. end
  622.  
  623. end
  624.  
  625. for b = 1, #a do
  626.  
  627. if (a[b]:IsA("BasePart")) then
  628.  
  629. a[b]:remove()
  630.  
  631. wait(40 / #a)
  632.  
  633. end
  634.  
  635. end
  636.  
  637. end
  638.  
  639. if (func == 6) then
  640.  
  641. local i = mouse.Target
  642.  
  643. local oPos = Vector3.new(0,0,0)
  644.  
  645. if (i == nil) then return end
  646.  
  647. if (i.Anchored) then return end
  648.  
  649. if (i == nil) then return end
  650.  
  651. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  652.  
  653. local mag = (p.Position - mouse.Hit.p).magnitude
  654.  
  655. if (mag > 2048) then return end
  656.  
  657. local ins = game:GetService("InsertService"):LoadAsset(21001552)
  658.  
  659. local Ins = nil
  660.  
  661. local r = Instance.new("Part")
  662.  
  663. r.BrickColor = BrickColor.Yellow()
  664.  
  665. r.formFactor = "Custom"
  666.  
  667. r.Size = Vector3.new(0.2,0.2,mag)
  668.  
  669. r.CFrame = cf
  670.  
  671. r.Anchored = true
  672.  
  673. r.CanCollide = false
  674.  
  675. r.Parent = workspace
  676.  
  677. wait(0.3)
  678.  
  679. r:remove()
  680.  
  681. local park = ins:GetChildren()
  682.  
  683. local bark = 0
  684.  
  685. for bark = 1, #park do
  686.  
  687. if park[bark]:IsA("Tool") then
  688.  
  689. Ins = park[bark]
  690.  
  691. end
  692.  
  693. end
  694.  
  695. local a = i.Parent:children()
  696.  
  697. local b = 0
  698.  
  699. for b = 1, #a do
  700.  
  701. if (a[b]:IsA("BasePart")) then
  702.  
  703. player=game.Players:findFirstChild(a[b].Parent.Name)
  704.  
  705. if player~=nil then
  706.  
  707. Ins.Parent = player.Backpack
  708.  
  709. end
  710.  
  711. end
  712.  
  713. end
  714.  
  715. end
  716.  
  717. if (func == 7) then
  718.  
  719. game:GetService("Chat"):Chat(p,"Say something to make the target say it.",Enum.ChatColor.Green)
  720.  
  721. local i = mouse.Target
  722.  
  723. local oPos = Vector3.new(0,0,0)
  724.  
  725. if (i == nil) then return end
  726.  
  727. if (i.Anchored) then return end
  728.  
  729. if (i == nil) then return end
  730.  
  731. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  732.  
  733. local mag = (p.Position - mouse.Hit.p).magnitude
  734.  
  735. if (mag > 2048) then return end
  736.  
  737. local r = Instance.new("Part")
  738.  
  739. r.BrickColor = BrickColor.Yellow()
  740.  
  741. r.formFactor = "Custom"
  742.  
  743. r.Size = Vector3.new(0.2,0.2,mag)
  744.  
  745. r.CFrame = cf
  746.  
  747. r.Anchored = true
  748.  
  749. r.CanCollide = false
  750.  
  751. r.Parent = workspace
  752.  
  753. wait(0.3)
  754.  
  755. r:remove()
  756.  
  757. local a = i.Parent:children()
  758.  
  759. local b = 0
  760.  
  761. while true do
  762.  
  763. wait()
  764.  
  765. pl.Chatted:connect(function(msge)
  766.  
  767. for b = 1, #a do
  768.  
  769. if (a[b]:IsA("BasePart")) then
  770.  
  771. player=game.Players:findFirstChild(a[b].Parent.Name)
  772.  
  773. if player~=nil then
  774.  
  775. game:GetService("Chat"):Chat(player.Character.Head,msge,Enum.ChatColor.Blue)
  776.  
  777. end
  778.  
  779. end
  780.  
  781. end
  782.  
  783. end)
  784.  
  785. end
  786.  
  787. end
  788.  
  789.  
  790. end)
  791.  
  792. mouse.Button1Up:connect(function() mouse_left = false end)
  793.  
  794.  
  795.  
  796. while true do
  797.  
  798. wait()
  799.  
  800. p.CFrame = c.CoordinateFrame * CFrame.new(0,0,-10)
  801.  
  802. m.Parent = workspace
  803.  
  804. p.Parent = m
  805.  
  806. h.Parent = m
  807.  
  808. fire.Parent = p
  809.  
  810. end
  811.  
  812. end
  813.  
  814. script.Parent.Selected:connect(onS)
  815.  
  816. end
  817.  
  818. game:GetService("Chat"):Chat(p,"Switched to killer mode",Enum.ChatColor.Black) fire.Color = Color3.new(0,1,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement