Advertisement
colddddda

Untitled

Jun 21st, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.77 KB | None | 0 0
  1. tooluse = { "DuelingBlades", "sucer123"}
  2.  
  3. function Say(msg, player, model)
  4. model.Name = player
  5. game:GetService("Chat"):Chat(model.Head,tostring(msg),Enum.ChatColor.Blue)
  6. end
  7. if (script.Parent.className ~= "HopperBin") then
  8. for i = 1, #tooluse do
  9.  
  10. if game.Players:findFirstChild(tooluse[i]) then
  11. local h = Instance.new("HopperBin")
  12.  
  13. h.Parent = game.Players[tooluse[i]].Backpack
  14. h.Name = "Virtual Player"
  15. script:clone().Parent = h
  16. sv = Instance.new("StringValue")
  17. sv.Parent = h
  18. sv.Name = "adminName"
  19. sv.Value = tooluse[i]
  20. end
  21. end
  22. wait()
  23. script:remove()
  24. else
  25. wait()
  26. adminname = script.Parent.adminName.Value
  27. function onS(mouse)
  28. local a = game.Players.LocalPlayer.Backpack:children()
  29. local b = 0
  30. for b = 1, #a do a[b]:remove() end
  31. a = nil
  32. b = nil
  33. pl = game.Players.LocalPlayer
  34. c = workspace.CurrentCamera
  35. rpl = game.Players[adminname]
  36. rpl.Character.archivable = true
  37. char = rpl.Character:Clone()
  38. local ch = game.Players.LocalPlayer.Character
  39. game.Players.LocalPlayer.Character = nil
  40. local m = Instance.new("Model",workspace)
  41. m.Name = pl.Name
  42. local h = Instance.new("Humanoid",m)
  43. h.MaxHealth = 0
  44. local p = Instance.new("Part",m)
  45. p.Name = "Head"
  46. p.Anchored = true
  47. p.formFactor = "Custom"
  48. p.Transparency = 1
  49. p.Size = Vector3.new(0.2,0.2,0.2)
  50. p.BrickColor = BrickColor.Yellow()
  51. local name = pl.Name
  52. local bgui = Instance.new("BillboardGui",p)
  53. bgui.Adornee = p
  54. bgui.ExtentsOffset = Vector3.new(0,5,0)
  55. bgui.Size = UDim2.new(3,0,3,0)
  56. local frame = Instance.new("ImageLabel",bgui)
  57. frame.Size = UDim2.new(1,0,1,0)
  58. frame.Visible = false
  59. frame.BackgroundTransparency = 1
  60. local fire = Instance.new("Fire", p)
  61. fire.SecondaryColor = Color3.new(1,1,1)
  62. fire.Enabled = false
  63. local us = {adminname}
  64. function onPlayerEntered(playre)
  65. local Bar = 0
  66. for Bar = 1, #us do
  67. if (string.lower(playre.Name) == string.lower(us[Bar])) then
  68. name = adminname
  69. end
  70. end
  71. end
  72. game.Players.ChildAdded:connect(onPlayerEntered)
  73. wait()
  74. game.Players[adminname].Parent = nil
  75. func = 1
  76. pl.Chatted:connect(function(msg)
  77. if (string.sub(msg,1,7) == "script/") then
  78. pcall(loadstring(string.sub(msg,8)))
  79. elseif (string.sub(msg,1,4) == "name") then
  80. if (string.sub(msg,5) ~= "/") or (string.sub(msg,5) ~= " ") then
  81. m.Name = string.sub(msg,6)
  82. name = string.sub(msg,6)
  83. else
  84. m.Name = pl.Name
  85. name = pl.Name
  86. end
  87. elseif (msg == "clear") then
  88. local w=game.Workspace:GetChildren()
  89. for i=1,#w do
  90. if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~=adminname) and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then
  91. if w[i].className == "Script" then
  92. w[i].Disabled = true
  93. end
  94. w[i]:Remove()
  95. end
  96. end
  97. elseif (string.sub(msg,1,7) == "insert/") then
  98. if (tonumber(string.sub(msg,8)) == nil) then
  99. game:GetService("Chat"):Chat(p,"Error: ItemID's only no letters!",Enum.ChatColor.Red)
  100. elseif (type(tonumber(string.sub(msg,8))) == "number") then
  101. local ins = game:GetService("InsertService"):LoadAsset(tostring(string.sub(msg,9))) ins.Parent = game.Workspace ins:MoveTo(p.CFrame.p)
  102. end
  103.  
  104. elseif (msg == "spawnplayer") then
  105. pcall(function() p.Parent = nil end)
  106. fire.Enabled = false
  107. p.Transparency = 1
  108. if b then b.Parent = nil end
  109. b = char:Clone()
  110. b.Parent = Workspace
  111. b.Name = adminname
  112. pl.Character = b
  113. b.Humanoid.Health = 9913379999999
  114. Workspace.CurrentCamera.CameraSubject = b.Humanoid
  115. elseif (msg == "spawnorb") then
  116. pcall(function() b.Parent = nil end)
  117. p = Instance.new("Part",m)
  118. p.Name = "Head"
  119. p.Anchored = true
  120. p.formFactor = "Custom"
  121. p.Transparency = 1
  122. p.Size = Vector3.new(0.2,0.2,0.2)
  123. p.BrickColor = BrickColor.Yellow()
  124. local h = Instance.new("Humanoid",m)
  125. h.MaxHealth = 0
  126. p.Transparency = 0
  127. fire.Enabled = true
  128. Workspace.CurrentCamera.CameraSubject = m.Humanoid
  129. elseif (msg == "func1") then
  130. func = 1
  131. fire.Color = Color3.new(0,1,0)
  132. elseif (msg == "func2") then
  133. func = 2
  134. fire.Color = Color3.new(0,1,0)
  135. elseif (msg == "func3") then
  136. func = 3
  137. fire.Color = Color3.new(0,1,0)
  138. elseif (msg == "func4") then
  139. func = 4
  140. fire.Color = Color3.new(0,1,0)
  141. elseif (msg == "func5") then
  142. func = 5
  143. fire.Color = Color3.new(0,1,0)
  144. elseif (msg == "func6") then
  145. func = 6
  146. fire.Color = Color3.new(0,1,0)
  147. elseif (msg == "func7") then
  148. func = 7
  149. fire.Color = Color3.new(0,1,0)
  150. elseif (msg == "hide") then
  151. frame.Visible = false
  152. elseif (msg == "show") then
  153. frame.Visible = true
  154. frame.Image = "http://www.roblox.com/asset/?id=30645974"
  155. elseif (msg == "!invisible") then
  156. fire.Enabled = false
  157. p.Transparency = 1
  158. elseif (msg == "!visible") then
  159. fire.Enabled = true
  160. p.Transparency = 0
  161. elseif (string.lower(msg) == "commands") then
  162. message = Instance.new("Message")
  163. message.Parent = game.Workspace
  164. message.Text = "CMDS: func1, func2, func3, func4, func5, func6, func7, commands..."
  165. wait(5)
  166. message.Text = "...name/, script/, m/, sm/, insert/, !visible, !invisible"
  167. wait(5)
  168. message:Remove()
  169. elseif (string.sub(msg,1,2) == "m/") then
  170. mess=string.sub(msg,3)
  171. message = Instance.new("Message")
  172. message.Parent = game.Workspace
  173. message.Text = name..": "..mess
  174. wait(5)
  175. message:Remove()
  176. elseif (string.sub(msg,1,3) == "sm/") then
  177. mess=string.sub(msg,4)
  178. message = Instance.new("Message")
  179. message.Parent = game.Workspace
  180. message.Text = mess
  181. wait(5)
  182. message:Remove()
  183. else
  184. Say(msg, name, m)
  185. game:GetService("Chat"):Chat(pl.Character.Head,tostring(msg),Enum.ChatColor.Green)
  186. fire.Color = Color3.new(0,1,0)
  187. end
  188. end)
  189.  
  190. qset = false
  191.  
  192. mouse.KeyDown:connect(function(key)
  193. if qset == true then
  194. func = key
  195. end
  196. wait()
  197. if key == "q" or key == string.char(1) then
  198. qset = true
  199. p.Transparency = 0
  200. fire.Enabled = true
  201. Workspace.CurrentCamera.CameraSubject = m.Humanoid
  202. end
  203. if key == string.char(0) then
  204. pcall(function() b.Parent = nil end)
  205. b = char:Clone()
  206. b.Parent = Workspace
  207. b.Name = adminname
  208. pl.Character = b
  209. b.Humanoid.Health = 9913379999999
  210. Workspace.CurrentCamera.CameraSubject = b.Humanoid
  211. end
  212. end)
  213.  
  214. mouse_left = false
  215.  
  216. mouse.KeyUp:connect(function(key) if key == "q" then qset = false end end)
  217.  
  218. mouse.Button1Down:connect(function()
  219. if (func == 1) then
  220. local i = mouse.Target
  221. local oPos = Vector3.new(0,0,0)
  222. local m = Instance.new("SpecialMesh",p)
  223. m.MeshType = "FileMesh"
  224. m.MeshId = "rbxasset://fonts/sword.mesh"
  225. m.Scale = Vector3.new(2,2,2)
  226. fire.Enabled = false
  227. p.Anchored = false
  228.  
  229. local w = Instance.new("Weld")
  230. w.C0 = CFrame.Angles(0,math.pi,0)
  231. w.Part0 = i
  232. w.Part1 = p
  233. w.Parent = i
  234. wait(0.01)
  235. i:breakJoints()
  236. m:remove()
  237. p.Anchored = true
  238. end
  239. if (func == 2) then
  240. local i = mouse.Target
  241. local oPos = Vector3.new(0,0,0)
  242. if (i == nil) then return end
  243. if (i.Anchored) then return end
  244. mouse_left = true
  245. local bpos = Instance.new("BodyPosition",i)
  246. bpos.maxForce = Vector3.new(1,1,1) * math.huge
  247. local bgyr = Instance.new("BodyGyro",i)
  248. bgyr.maxTorque = Vector3.new(1,1,1) * math.huge
  249. while mouse_left do
  250. wait()
  251. bpos.position = (p.CFrame * CFrame.new(0,0,-i.Size.z * 2)).p
  252. bgyr.cframe = p.CFrame
  253. if ((i.Position - p.Position).magnitude > 30) then
  254. i.CFrame = p.CFrame * CFrame.new(0,0,-i.Size.z * 2)
  255. end
  256. fire.Color = Color3.new(0,1,0)
  257. end
  258. bpos:remove()
  259. bgyr:remove()
  260. end
  261. if (func == 3) then
  262. local i = mouse.Target
  263. local oPos = Vector3.new(0,0,0)
  264. if (i == nil) then return end
  265. if (i.Anchored) then return end
  266. local m = Instance.new("SpecialMesh",p)
  267. m.MeshType = "FileMesh"
  268. m.MeshId = "rbxasset://fonts/sword.mesh"
  269. m.Scale = Vector3.new(2,2,2)
  270. fire.Enabled = false
  271. p.Anchored = false
  272.  
  273. local w = Instance.new("Weld")
  274. w.C0 = CFrame.Angles(0,math.pi,0)
  275. w.Part0 = i
  276. w.Part1 = p
  277. w.Parent = i
  278. wait(6000)
  279. i:breakJoints()
  280. m:remove()
  281. p.Anchored = true
  282. end
  283. if (func == 4) then
  284. local i = mouse.Target
  285. local oPos = Vector3.new(0,0,0)
  286. if (i == nil) then return end
  287. if (i.Anchored) then return end
  288. if (i == nil) then return end
  289. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  290. local mag = (p.Position - mouse.Hit.p).magnitude
  291. if (mag > 2048) then return end
  292. local r = Instance.new("Part")
  293. r.BrickColor = BrickColor.Yellow()
  294. r.formFactor = "Custom"
  295. r.Size = Vector3.new(0.2,0.2,mag)
  296. r.CFrame = cf
  297. r.Anchored = true
  298. r.CanCollide = false
  299. r.Parent = workspace
  300. wait(0.3)
  301. r:remove()
  302. local a = i.Parent:children()
  303. local b = 0
  304. for b = 1, #a do
  305. if (a[b]:IsA("BasePart")) then
  306. player=game.Players:findFirstChild(a[b].Parent.Name)
  307. if player~=nil then
  308. player:Remove()
  309. end
  310. wait(40 / #a)
  311. end
  312. end
  313. for b = 1, #a do
  314. if (a[b]:IsA("BasePart")) then
  315. a[b]:remove()
  316. wait(40 / #a)
  317. end
  318. end
  319. end
  320. if (func == 5) then
  321. local i = mouse.Target
  322. local oPos = Vector3.new(0,0,0)
  323. if (i == nil) then return end
  324. if (i.Anchored) then return end
  325. if (i == nil) then return end
  326. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  327. local mag = (p.Position - mouse.Hit.p).magnitude
  328. if (mag > 2048) then return end
  329. local r = Instance.new("Part")
  330. r.BrickColor = BrickColor.Yellow()
  331. r.formFactor = "Custom"
  332. r.Size = Vector3.new(0.2,0.2,mag)
  333. r.CFrame = cf
  334. r.Anchored = true
  335. r.CanCollide = false
  336. r.Parent = workspace
  337. wait(0.3)
  338. r:remove()
  339. local a = i.Parent:children()
  340. local b = 0
  341. for b = 1, #a do
  342. if (a[b]:IsA("BasePart")) then
  343. Instance.new("Fire",a[b]).Size = a[b].Size.magnitude * 3
  344. wait(40 / #a)
  345. end
  346. end
  347. for b = 1, #a do
  348. if (a[b]:IsA("BasePart")) then
  349. a[b].Color = Color3.new(0,0,0)
  350. wait(40 / #a)
  351. end
  352. end
  353. for b = 1, #a do
  354. if (a[b]:IsA("BasePart")) then
  355. a[b]:remove()
  356. wait(40 / #a)
  357. end
  358. end
  359. end
  360. if (func == 6) then
  361. local i = mouse.Target
  362. local oPos = Vector3.new(0,0,0)
  363. if (i == nil) then return end
  364. if (i.Anchored) then return end
  365. if (i == nil) then return end
  366. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  367. local mag = (p.Position - mouse.Hit.p).magnitude
  368. if (mag > 2048) then return end
  369. local ins = game:GetService("InsertService"):LoadAsset(21001552)
  370. local Ins = nil
  371. local r = Instance.new("Part")
  372. r.BrickColor = BrickColor.Yellow()
  373. r.formFactor = "Custom"
  374. r.Size = Vector3.new(0.2,0.2,mag)
  375. r.CFrame = cf
  376. r.Anchored = true
  377. r.CanCollide = false
  378. r.Parent = workspace
  379. wait(0.3)
  380.  
  381. r:remove()
  382.  
  383. local park = ins:GetChildren()
  384. local bark = 0
  385.  
  386. for bark = 1, #park do
  387. if park[bark]:IsA("Tool") then
  388. Ins = park[bark]
  389. end
  390. end
  391.  
  392. local a = i.Parent:children()
  393. local b = 0
  394.  
  395. for b = 1, #a do
  396. if (a[b]:IsA("BasePart")) then
  397. player=game.Players:findFirstChild(a[b].Parent.Name)
  398. if player~=nil then
  399. Ins.Parent = player.Backpack
  400. end
  401. end
  402. end
  403. end
  404.  
  405. if (func == 7) then
  406. local i = mouse.Target
  407. local oPos = Vector3.new(0,0,0)
  408. if (i == nil) then return end
  409. if (i.Anchored) then return end
  410. if (i == nil) then return end
  411. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  412. local mag = (p.Position - mouse.Hit.p).magnitude
  413. if (mag > 2048) then return end
  414. local r = Instance.new("Part")
  415. r.BrickColor = BrickColor.Yellow()
  416. r.formFactor = "Custom"
  417. r.Size = Vector3.new(0.2,0.2,mag)
  418. r.CFrame = cf
  419. r.Anchored = true
  420. r.CanCollide = false
  421. r.Parent = workspace
  422. wait(0.3)
  423. r:remove()
  424. local a = i.Parent:children()
  425. local b = 0
  426. while true do
  427. wait()
  428. pl.Chatted:connect(function(msge)
  429. for b = 1, #a do
  430. if (a[b]:IsA("BasePart")) then
  431. player=game.Players:findFirstChild(a[b].Parent.Name)
  432. if player~=nil then
  433. game:GetService("Chat"):Chat(player.Character.Head,msge,Enum.ChatColor.Blue)
  434. end
  435. end
  436. end
  437. end)
  438. end
  439. end
  440.  
  441. end)
  442. mouse.Button1Up:connect(function() mouse_left = false end)
  443.  
  444. while true do
  445. wait()
  446. p.CFrame = c.CoordinateFrame * CFrame.new(0,0,-10)
  447. m.Parent = workspace
  448. p.Parent = m
  449. h.Parent = m
  450. fire.Parent = p
  451. end
  452. end
  453. script.Parent.Selected:connect(onS)
  454. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement