Advertisement
popster12345

Untitled

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