Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 5,316, and 320 and put your name where it says "YOUR NAME HERE"
  2.  
  3.  
  4.  
  5. jun = game.Players.knightblackhero
  6. Stuff = false
  7. --password
  8. function ssj()
  9. if Stuff == false then
  10. Stuff = true
  11. for u, c in pairs (jun.Character:GetChildren()) do
  12. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  13. c.Handle.Transparency = 1
  14. end
  15. end
  16. Hair22 = Instance.new("Part")
  17. Hair22.Parent = jun.Character
  18. Hair22.Name = "Hair"
  19. Hair22.formFactor = "Symmetric"
  20. Hair22.Size = Vector3.new(1, 1, 1)
  21. Hair22.CFrame = jun.Character.Head.CFrame
  22. Hair22:BreakJoints()
  23. Hair22.CanCollide = false
  24. Hair22.TopSurface = "Smooth"
  25. Hair22.BottomSurface = "Smooth"
  26. Hair22.BrickColor = BrickColor.new("Bright yellow")
  27. Weld = Instance.new("Weld")
  28. Weld.Part0 = jun.Character.Head
  29. Weld.Part1 = Hair22
  30. Weld.Parent = jun.Character.Head
  31. Weld.C0 = CFrame.new(0, 0.26, 0.2)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  32. Mesh = Instance.new("SpecialMesh")
  33. Mesh.Parent = Hair22
  34. Mesh.MeshId = "http://www.roblox.com/asset/?id=62246019"
  35. Mesh.Scale = Vector3.new(1, 1, 1)
  36. Hair2 = Instance.new("Part")
  37. Hair2.Parent = jun.Character
  38. Hair2.Name = "Hair"
  39. Hair2.formFactor = "Symmetric"
  40. Hair2.Size = Vector3.new(0,10,0)
  41. Hair2.CFrame = jun.Character.Head.CFrame
  42. Hair2:BreakJoints()
  43. Hair2.CanCollide = false
  44. Hair2.TopSurface = "Smooth"
  45. Hair2.BottomSurface = "Smooth"
  46. Hair2.BrickColor = BrickColor.new("White")
  47. Weld = Instance.new("Weld")
  48. Weld.Part0 = jun.Character.Torso
  49. Weld.Part1 = Hair2
  50. Weld.Parent = jun.Character.Head
  51. Weld.C0 = CFrame.new(0, .26, 1.6)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  52. Mesh = Instance.new("SpecialMesh")
  53. Mesh.Parent = Hair2
  54. Mesh.MeshId = "http://www.roblox.com/asset/?id=19367744"
  55. Mesh.TextureId = "http://www.roblox.com/asset/?id=19367734"
  56. Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  57. BlastRing = Instance.new("Part")
  58. BlastRing.Parent = game.Lighting
  59. BlastRing.Name = "Blast"
  60. BlastRing.formFactor = "Symmetric"
  61. BlastRing.Size = Vector3.new(1, 1, 1)
  62. BlastRing.CanCollide = false
  63. BlastRing.TopSurface = "Smooth"
  64. BlastRing.BottomSurface = "Smooth"
  65. BlastRing.BrickColor = BrickColor.new("Bright yellow")
  66. BlastRing.Reflectance = 0
  67. BlastRing.Anchored = true
  68. Mesh2 = Instance.new("SpecialMesh")
  69. Mesh2.Parent = BlastRing
  70. Mesh2.MeshType = "FileMesh"
  71. Mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  72. Mesh2.Scale = Vector3.new(1, 5.8, 1)
  73. blastring2 = BlastRing:clone()
  74. Hair4 = Instance.new("Part")
  75. Hair4.Parent = jun.Character
  76. Hair4.Name = "Hair"
  77. Hair4.CanCollide = false
  78. Hair4.Locked = true
  79. Hair4.TopSurface = "Smooth"
  80. Hair4.BottomSurface = "Smooth"
  81. Hair4.formFactor = "Symmetric"
  82. Hair4.BrickColor = BrickColor.new("Bright yellow")
  83. Hair4.CFrame = jun.Character.Torso.CFrame
  84. Hair4.Size = Vector3.new(1, 1, 1)
  85. Weld = Instance.new("Weld")
  86. Weld.Parent = jun.Character.Head
  87. Weld.Part0 = jun.Character.Head
  88. Weld.Part1 = Hair4
  89. Weld.C0 = CFrame.new(0, 1, 0)
  90. Mesh = Instance.new("SpecialMesh")
  91. Mesh.Parent = Hair4
  92. Mesh.Scale = Vector3.new(1.15, 1.8, 1.26)
  93. Mesh.MeshType = "FileMesh"
  94. Mesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
  95. Mesh.TextureId = ""
  96. Effect = Instance.new("Part")
  97. Effect.Parent = jun.Character
  98. Effect.Anchored = true
  99. Effect.CanCollide = false
  100. Effect.Size = Vector3.new(1, 1, 1)
  101. Effect.formFactor = "Symmetric"
  102. Effect.Transparency = 0.5
  103. Effect.BrickColor = BrickColor.new("Deep blue")
  104. Effect.Reflectance = 0.3
  105. Effect.TopSurface = "Smooth"
  106. Effect.BottomSurface = "Smooth"
  107. EffectMesh = Instance.new("CylinderMesh")
  108. EffectMesh.Parent = Effect
  109. EffectMesh.Scale = Vector3.new(1, 100, 1)
  110. blastring2.Parent = jun.Character
  111. blastring2.Position = jun.Character.Torso.Position
  112. blastring2.BrickColor = BrickColor.new("Deep blue")
  113. blastring2.Transparency = 0.7
  114. blastring2.Reflectance = 0
  115. jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, -0.5, -1)
  116. for i = 1 , 20 do
  117. Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
  118. blastring2.CFrame = CFrame.new(jun.Character.Torso.Position) * CFrame.new(0, 0.5, -0.8)
  119. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0, 0.5)
  120. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(0.7, 0, 0.7)
  121. wait(0.001)
  122. end
  123. for i = 1 , 20 do
  124. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(-0.5, 0, -0.5)
  125. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(-0.7, 0, -0.7)
  126. wait(0.001)
  127. end
  128. blastring2.BrickColor = BrickColor.new("Lime green")
  129. Effect.BrickColor = BrickColor.new("Lime green")
  130. for i = 1 , 20 do
  131. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(0.7, 0, 0.7)
  132. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0, 0.5)
  133. wait(0.001)
  134. end
  135. for i = 1 , 20 do
  136. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(-0.5, 0, -0.5)
  137. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(-0.7, 0, -0.7)
  138. wait(0.001)
  139. end
  140. Effect:remove()
  141. blastring2:remove()
  142. lol = Instance.new("Explosion")
  143. lol.Parent = game.Workspace
  144. lol.Position = jun.Character.Torso.Position
  145. lol.BlastRadius = 10
  146. lol.BlastPressure = 0
  147. --[[ex = Instance.new("Explosion")
  148. ex.Position = jun.Character.Torso.Position
  149. ex.BlastPressure = 0
  150. ex.Parent = workspace]]
  151. jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0)
  152. for i = 1 , 20 do
  153. Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
  154. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0, 0.5)
  155. Effect.Transparency = Effect.Transparency + 0.01
  156. wait(0.05)
  157. end
  158. for i = 1 , 20 do
  159. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(-0.5, 0, -0.5)
  160. Effect.BrickColor = BrickColor.new("Really blue")
  161. wait(0.05)
  162. end
  163. Effect:Remove()
  164. game.Lighting.TimeOfDay = 15
  165. game.Lighting.FogEnd = 10000
  166. if jun.Character.Torso:findFirstChild("PwnFire") == nil then
  167. local pie = Instance.new("Fire")
  168. pie.Name = "PwnFire"
  169. pie.Parent = jun.Character.Torso
  170. pie.Size = 13
  171. pie.Color = BrickColor.new("Really blue").Color
  172. pie.SecondaryColor = BrickColor.new("Lime green").Color
  173. end
  174. if jun.Character.Torso:findFirstChild("PwnSparkles") == nil then
  175. pie = Instance.new("Sparkles")
  176. pie.Name = "PwnSparkles"
  177. pie.Parent = jun.Character.Torso
  178. pie.SparkleColor = BrickColor.new("New Yeller").Color
  179. end
  180. jun.Character.Humanoid.MaxHealth = 350
  181. wait(0.3)
  182. jun.Character.Humanoid.Health = 300
  183. end
  184. end
  185. function nossj()
  186. if Stuff == true then
  187. Stuff = false
  188. if jun.Character.Torso:findFirstChild("PwnFire") ~= nil then
  189. jun.Character.Torso:findFirstChild("PwnFire"):Remove()
  190. end
  191. if jun.Character.Torso:findFirstChild("PwnSparkles") ~= nil then
  192. jun.Character.Torso:findFirstChild("PwnSparkles"):Remove()
  193. end
  194. p = Instance.new("Part")
  195. p.Parent = jun.Character
  196. p.Anchored = true
  197. p.CanCollide = false
  198. p.Transparency = 0
  199. p.formFactor = "Symmetric"
  200. p.Size = Vector3.new(44, 44, 44)
  201. p.TopSurface = "Smooth"
  202. p.BottomSurface = "Smooth"
  203. p.Name = "Sharingan"
  204. p.Shape = "Ball"
  205. p.CFrame = jun.Character.Torso.CFrame
  206. p.BrickColor = BrickColor.new("Bright yellow")
  207. for i = 1 , 10 do
  208. wait(0.05)
  209. p.Size = p.Size + Vector3.new(-3, -3, -3)
  210. p.Transparency = p.Transparency + 0.01
  211. p.CFrame = jun.Character.Torso.CFrame
  212. end
  213. p:Remove()
  214. for u, c in pairs (jun.Character:GetChildren()) do
  215. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  216. c.Handle.Transparency = 0
  217. end
  218. if c.Name == "Hair" then
  219. c:Remove()
  220. end
  221. end
  222. for u, c in pairs (game.Lighting:GetChildren()) do
  223. if c.className == "Pants" then
  224. c.Parent = game.Workspace.salsa232
  225. end
  226. end
  227. for u, c in pairs (game.Lighting:GetChildren()) do
  228. if c.className == "Shirt" then
  229. c.Parent = game.Workspace.salsa232
  230. end
  231. end
  232. jun.Character.Humanoid.Health = 80
  233. wait()
  234. jun.Character.Humanoid.MaxHealth = 100
  235. wait()
  236. jun.Character.Torso.fire1:remove()
  237. wait()
  238. jun.Character.Torso.fire2:remove()
  239. wait()
  240. jun.Character.Torso.fire3:remove()
  241. wait()
  242. jun.Character.Torso.fire4:remove()
  243. wait()
  244. jun.Character.Torso.fire5:remove()
  245. end
  246. end
  247. jun.Chatted:connect(function(Msg)
  248. msg = Msg:lower()
  249. if string.sub(msg, 1, 7) == "demon mode" then
  250. game.Lighting.FogColor = BrickColor.new("Really black").Color
  251. wait()
  252. game.Lighting.TimeOfDay = 16
  253. wait(0.3)
  254. game.Lighting.TimeOfDay = 17
  255. wait(0.3)
  256. game.Lighting.TimeOfDay = 18
  257. wait(0.3)
  258. game.Lighting.TimeOfDay = 19
  259. wait(0.3)
  260. game.Lighting.FogEnd = 1000
  261. wait(0.1)
  262. game.Lighting.FogEnd = 800
  263. wait(0.1)
  264. game.Lighting.FogEnd = 600
  265. wait(0.1)
  266. game.Lighting.FogEnd = 500
  267. wait(0.1)
  268. game.Lighting.FogEnd = 400
  269. wait(0.1)
  270. game.Lighting.FogEnd = 300
  271. ssj()
  272. end
  273. if string.sub(msg, 1, 4) == "!" then
  274. game.Lighting.FogColor = BrickColor.new("Really black").Color
  275. wait()
  276. game.Lighting.TimeOfDay = 16
  277. wait(0.3)
  278. game.Lighting.TimeOfDay = 17
  279. wait(0.3)
  280. game.Lighting.TimeOfDay = 18
  281. wait(0.3)
  282. game.Lighting.TimeOfDay = 19
  283. wait(0.3)
  284. game.Lighting.FogEnd = 1000
  285. wait(0.1)
  286. game.Lighting.FogEnd = 800
  287. wait(0.1)
  288. game.Lighting.FogEnd = 600
  289. wait(0.1)
  290. game.Lighting.FogEnd = 500
  291. wait(0.1)
  292. game.Lighting.FogEnd = 400
  293. wait(0.1)
  294. game.Lighting.FogEnd = 300
  295. wait(0.1)
  296. ssj()
  297. end
  298. if string.sub(msg, 1, 6) == "ssj" then
  299. wait(0.1)
  300. ssj()
  301. end
  302. if string.sub(msg, 1, 10) == "off" then
  303. wait(0.1)
  304. nossj()
  305. end
  306. if string.sub(msg, 1, 3) == "!" then
  307. wait(0.1)
  308. nossj()
  309. end
  310. end)
  311. function OnDeath()
  312. wait()
  313. nossj()
  314. end
  315. jun.Character.Humanoid.Died:connect(OnDeath)
  316. jun = game.Players.knightblackhero
  317. Stuff = false
  318. --password
  319.  
  320. owner,name = 'knightblackhero','The Epic tool'
  321. if script.Parent.className ~= 'HopperBin' then
  322. hop = Instance.new("HopperBin",game.Players[owner].Backpack)
  323. hop.Name = name
  324. script.Parent = hop
  325. script.Name = "Function"
  326. end
  327. hop = script.Parent
  328. ply = game.Players[owner]
  329. char = ply.Character
  330. debris = game:GetService("Debris")
  331. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  332. floatforce = 196.25
  333. torso = char.Torso
  334. attacking = false
  335. track = false
  336. pcall(function() char:FindFirstChild("legetd"):Remove() char:FindFirstChild("Belt"):Remove() end)
  337. m = Instance.new("Model",char) m.Name = "legetd"
  338. rs = torso["Right Shoulder"]
  339. ls = torso["Left Shoulder"]
  340. rh = torso["Right Hip"]
  341. lh = torso["Right Hip"]
  342. neck = torso["Neck"]
  343. rw,lw = nil,nil
  344. rhw,lhw = nil,nil
  345. local orgc1 = rs.C1
  346. rarm = char["Right Arm"]
  347. larm = char["Left Arm"]
  348. rleg = char["Right Leg"]
  349. lleg = char["Left Leg"]
  350. normposr = cfn(1.5,.5,0)
  351. normposl = cfn(-1.5,.5,0)
  352. normposr2 = cfn(.5,-1.5,0)
  353. normposl2 = cfn(-.5,-1.5,0)
  354. normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
  355. holdpos = normposr*ang(math.pi/2,0,0)
  356. holdpos2 = normposl*ang(math.pi/2,0,0)
  357. lock = {["R"] =
  358. function(a)
  359. if a == 1 then
  360. rabrick = T.P(1,1,1,"White",1,false,false)
  361. rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
  362. T.W(rarm,rabrick,0,-.5,0,0,0,0)
  363. elseif a == 2 then
  364. rlbrick = T.P(1,1,1,"White",1,false,false)
  365. rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
  366. T.W(rleg,rlbrick,0,-.5,0,0,0,0)
  367. elseif a == 0 then
  368. rs.Parent = torso
  369. rw.Parent = nil
  370. rabrick:Destroy() rabrick = nil
  371. elseif a == -1 then
  372. rhw.Parent = nil
  373. rh.Parent = torso
  374. rlbrick:Destroy() rlbrick = nil
  375. end
  376. end
  377. , ["L"] = function(a)
  378. if a == 1 then
  379. labrick = T.P(1,1,1,"White",1,false,false)
  380. lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
  381. T.W(larm,labrick,0,-.5,0,0,0,0)
  382. elseif a == 2 then
  383. llbrick = T.P(1,1,1,"White",1,false,false)
  384. lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
  385. T.W(lleg,llbrick,0,-.5,0,0,0,0)
  386. elseif a == 0 then
  387. ls.Parent = torso
  388. lw.Parent = nil
  389. labrick:Destroy() labrick = nil
  390. elseif a == -1 then
  391. lhw.Parent = nil
  392. lh.Parent = torso
  393. llbrick:Destroy() llbrick = nil
  394. end
  395. end}
  396. ------TOOOOOLS------
  397. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  398. if typee ~= nil then
  399. c = Instance.new("WedgePart",m)
  400. else
  401. c = Instance.new("Part",m)
  402. end
  403. c.TopSurface,c.BottomSurface = 0,0
  404. c.Locked = true
  405. c.formFactor = "Custom"
  406. c.Size = Vector3.new(x,y,z)
  407. if color ~= "random" then
  408. c.BrickColor = BrickColor.new(color)
  409. else c.BrickColor = BrickColor:random() end
  410. c.Transparency = transparency
  411. c.CanCollide = cancollide
  412. if anchored ~= nil then c.Anchored = anchored end
  413. if parent ~= nil then c.Parent = parent end
  414. return c
  415. end
  416. ,
  417. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  418. ,
  419. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  420. w = Instance.new("Motor",m)
  421. if parent ~= nil then w.Parent = parent end
  422. w.Part0,w.Part1 = part0,part1
  423. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  424. return w
  425. end
  426. ,
  427. ["BG"] = function(parent)
  428. local c = Instance.new("BodyGyro",parent)
  429. c.P = 20e+003
  430. c.cframe = parent.CFrame
  431. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  432. return c
  433. end
  434. ,
  435. ["BP"] = function(parent,position)
  436. local bp = Instance.new("BodyPosition",parent)
  437. bp.maxForce = Vector3.new()*math.huge
  438. bp.position = position
  439. return bp
  440. end
  441. ,
  442. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  443. f = Instance.new("Fire",parent)
  444. f.Size = size
  445. f.Heat = heat
  446. if enabled ~= nil then f.Enabled = enabled end
  447. if color ~= nil then f.Color = BrickColor.new(color).Color end
  448. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  449. return f
  450. end
  451. ,
  452. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  453. if meshid == "cylinder" then
  454. mesh = Instance.new("CylinderMesh",parent)
  455. mesh.Scale = Vector3.new(x,y,z)
  456. return mesh
  457. else
  458. mesh = Instance.new("SpecialMesh",parent)
  459. if meshid ~= "sphere" then
  460. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  461. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  462. end
  463. else mesh.MeshType = 3 end
  464. mesh.Scale = Vector3.new(x,y,z)
  465. if meshtexture ~= nil then
  466. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  467. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  468. end
  469. return mesh
  470. end
  471. end,
  472. ["Dec"] = function(parent,face,id,transparency)
  473. c = Instance.new("Decal",parent)
  474. c.Face = face
  475. c.Texture = id
  476. if transparency then c.Transparency = transparency end
  477. return c
  478. end
  479. }
  480. M = {["R"] = function(a,b) return math.random(a,b) end,
  481. ["Cos"] = function(a) return math.cos(a) end,
  482. ["Sin"] = function(a) return math.sin(a) end,
  483. ["D"] = function(a) return math.rad(a) end
  484. }
  485. ----------------DAMAGE FUNCTION--------------------
  486. function damage(hit,amount,show,del,akti,poikkeus)
  487. for i,v in pairs(hit:GetChildren()) do
  488. if v:IsA("Humanoid") and v.Parent ~= char then
  489. amo = 0
  490. function showa(p)
  491. if show == true then
  492. for i,o in pairs(p:GetChildren()) do
  493. if o:IsA("BillboardGui") and o.Name == "satuttava" then
  494. amo = amo+1
  495. end end
  496. local bbg = Instance.new("BillboardGui",p)
  497. bbg.Adornee = p.Torso
  498. bbg.Name = "satuttava"
  499. bbg.Size = UDim2.new(2,0,2,0)
  500. bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
  501. local box = Instance.new("TextLabel",bbg)
  502. box.Size = UDim2.new(1,0,1,0)
  503. box.BackgroundColor = BrickColor.new("White")
  504. if type(amount) == 'string' then
  505. box.Text = amount:sub(1,string.find(amount,';')-1)
  506. else
  507. box.Text = amount
  508. end
  509. box.BackgroundTransparency = .5
  510. if amount == 0 then box.Text = "K.O" end
  511. box.Position = UDim2.new(0,0,0,0)
  512. box.TextScaled = true
  513. game:GetService("Debris"):AddItem(bbg,.5)
  514. end
  515. end
  516. function dame(q)
  517. damwo = amount
  518. if type(damwo) == 'string' then
  519. damwo = tonumber(amount:match(';%d*%.?%d*'):sub(2))
  520. end
  521. if poikkeus ~= nil then
  522. for _,u in pairs(poikkeus) do
  523. if q.Parent.Name ~= u then
  524. showa(q)
  525. if amount == 0 then q.Parent:BreakJoints() end
  526. q.Health = q.Health - 25
  527. end
  528. end
  529. elseif poikkeus == nil then
  530. if amount == 0 then q.Parent:BreakJoints() end
  531. q.Health = q.Health - 100
  532. showa(q)
  533. end
  534. end
  535. if del ~= nil then
  536. local find = v.Parent:FindFirstChild("hitted")
  537. if find == nil then
  538. val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
  539. dame(v) if akti ~= nil then T.C(function() akti(v) end) end
  540. game:GetService("Debris"):AddItem(val,del)
  541. end
  542. elseif del == nil then
  543. dame(v) if akti ~= nil then T.C(function() akti(v) end) end
  544. end
  545. return v
  546. end
  547. end
  548. end
  549. -----------------------------------------------------------------
  550. ------MESHIDS---
  551. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  552. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  553. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  554. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  555. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549}---some meshids
  556. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  557. -----------------
  558. function lazer(from,to,dea)
  559. mag = (from-to).magnitude
  560. local laz = T.P(2,mag,2,'Deep blue',.5,false,true,char)
  561. local cl = T.P(1,mag,1,'Magenta',.5,false,true,char)
  562. T.FM(laz,'cylinder',1,1,1) T.FM(cl,'cylinder',1,1,1)
  563. laz.CFrame = (cfn(from,to)*cfn(0,0,-mag/2))*ang(-math.pi/2,0,0)
  564. cl.CFrame = laz.CFrame
  565. laz.Touched:connect(function(hit) damage(hit.Parent,dea,true) end)
  566. obj = Workspace:FindPartOnRay(Ray.new(from,cfn(from,to).lookVector*mag),m)
  567. if obj then damage(obj.Parent,dea,true) end
  568. delay(0,function()
  569. for i = .5,1,.05 do
  570. wait()
  571. laz.Transparency = i
  572. cl.Transparency = i
  573. end
  574. laz:Remove() cl:Remove()
  575. end)
  576. game:GetService("Debris"):AddItem(laz,.1)
  577. end
  578. -----------ZOMBIE MAKER FUNCTION------------
  579. function exorcism()
  580. pos = torso.Position+torso.CFrame.lookVector*3+v3n(0,-3,0)
  581. p = T.P(5,.1,5,'White',1,false,true)
  582. p.CFrame = cfn(pos)
  583. dec = T.Dec(p,'Top','http://www.roblox.com/asset/?id=78664116')
  584. fire = T.F(p,10,3,'Navy blue','Toothpaste')
  585. holding = true
  586. while holding do
  587. person = Instance.new("Model",Workspace)
  588. person.Name = 'Zombie'
  589. ----PARTS-------
  590. local hed = T.P(1,1,1,'White',0,true,false,person) hed.Name = 'Head'
  591. Instance.new("SpecialMesh",hed).Scale = v3n(1.25,1.25,1.25)
  592. local tor = T.P(2,2,1,'White',0,true,false,person) tor.Name = 'Torso'
  593. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Left Arm'
  594. q = T.W(ar,tor,-.5,0.5,0,0,math.pi/2,0,tor)
  595. q.C0 = cfn(1,0.5,0)*ang(0,math.pi/2,0)
  596. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Right Arm'
  597. q2 = T.W(ar,tor,.5,0.5,0,0,math.pi/2,0,tor)
  598. q2.C0 = cfn(-1,0.5,0)*ang(0,math.pi/2,0)
  599. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Right Leg'
  600. T.W(ar,tor,-.5,-2,0,0,0,0,tor)
  601. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Left Leg'
  602. T.W(ar,tor,.5,-2,0,0,0,0,tor)
  603. T.W(hed,tor,0,1.5,0,0,0,0,tor)
  604. ----PARTS-------
  605. q.MaxVelocity = .1
  606. q.DesiredAngle = math.pi/2
  607. q2.MaxVelocity = .1
  608. q2.DesiredAngle = math.pi/2
  609. local hum = Instance.new("Humanoid",person)
  610. Instance.new("Skin",person).SkinColor = BrickColor.new('Earth green')
  611. tor.CFrame = p.CFrame+v3n(0,3,0)
  612. tor.CFrame = cfn(tor.Position,torso.Position)*ang(0,math.pi,0)
  613. shirt = Instance.new('Shirt',person)
  614. shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=79001892'
  615. pants = Instance.new('Pants',person)
  616. pants.PantsTemplate = 'http://www.roblox.com/asset/?id=79001892'
  617. crown = T.P(1,1,1,'White',0,false,false)
  618. T.FM(crown,1031410,1,1,1,1031417)
  619. T.W(crown,hed,-.2,.85,0,0,0,M.D(20))
  620. face = T.Dec(hed,'Front','http://www.roblox.com/asset/?id=65180938')
  621. ---DYING---
  622. hum.Died:connect(function() hum.Parent:Remove() end)
  623. ---DYING---
  624. wait(.5)
  625. end
  626. fire.Enabled = false
  627. local dec,p = dec,p
  628. T.C(function()
  629. for i = 0,1,.05 do
  630. wait()
  631. dec.Transparency = i
  632. end
  633. p:Remove()
  634. end)
  635. end
  636. -----------ZOMBIE MAKER FUNCTION------------
  637. for i,v in pairs(char:children()) do
  638. if v:IsA("Hat") then v:Remove()
  639. end end
  640. hat = T.P(1,1,1,'Black',0,false,false)
  641. T.FM(hat,11419761,1,1,1,15786618).VertexColor = v3n(0,1,1)
  642. T.W(hat,char.Head,0,.95,0,0,0,0)
  643. function dash(mouse)
  644. if mouse.Target ~= nil then
  645. pos = mouse.hit.p + v3n(0,2,0)
  646. orig = torso.Position
  647. mag = (orig-pos).magnitude
  648. torso.CFrame = cfn(pos,orig)*ang(0,math.pi,0)
  649. local laz = T.P(1,mag,2.1,'New Yeller',0,false,true)
  650. laz.CFrame = (cfn(orig,pos)*cfn(0,0,-mag/2))*ang(math.pi/2,0,0)
  651. wed = T.P(1,mag/2,1,'New Yeller',0,false,true,m,'')
  652. wed.CFrame = (laz.CFrame*cfn(0,mag/4,laz.Size.z/2+.5))*ang(math.pi,0,math.pi)
  653. wed2 = T.P(1,mag/2,1,'New Yeller',0,false,true,m,'')
  654. wed2.CFrame = (laz.CFrame*cfn(0,-mag/4,laz.Size.z/2+.5))*ang(math.pi,0,0)
  655. wed3 = T.P(1,mag/2,1,'New Yeller',0,false,true,m,'')
  656. wed3.CFrame = (laz.CFrame*cfn(0,mag/4,-laz.Size.z/2-.5))*ang(0,0,0)
  657. wed4 = T.P(1,mag/2,1,'New Yeller',0,false,true,m,'')
  658. wed4.CFrame = (laz.CFrame*cfn(0,-mag/4,-laz.Size.z/2-.5))*ang(0,0,math.pi)
  659. wed5 = T.P(1,2,1,'New Yeller',0,false,true,m,'')
  660. wed5.CFrame = (laz.CFrame*cfn(0,mag/2+1,wed5.Size.z/2))*ang(0,math.pi,0)
  661. wed6 = T.P(1,2,1,'New Yeller',0,false,true,m,'')
  662. wed6.CFrame = (laz.CFrame*cfn(0,mag/2+1,-wed6.Size.z/2))*ang(0,0,0)
  663. local wed,wed2,wed3,wed4,wed5,wed6 = wed,wed2,wed3,wed4,wed5,wed6
  664. local list = {wed,wed2,wed3,wed4,wed5,wed6}
  665. laz.Touched:connect(function(hit) local hum = damage(hit.Parent,'Blinded!;0',true,1)
  666. if hum then
  667. bg = T.BG(hum.Torso)
  668. bg.cframe = hum.Torso.CFrame*ang(math.pi,0,0)
  669. game:GetService("Debris"):AddItem(bg,2)
  670. end
  671. end)
  672. delay(0,function()
  673. for i = 0,1,.05 do wait()
  674. for _,v in pairs(list) do v.Transparency = i end
  675. laz.Transparency = i end
  676. laz:Remove()
  677. for _,v in pairs(list) do v:Remove() end end)
  678. end
  679. end
  680. function wallo(mouse)
  681. p = T.P(20,.1,20,'Black',1,false,true)
  682. holding = true
  683. T.Dec(p,'Top','http://www.roblox.com/asset/?id=72591512')
  684. while holding do
  685. wait()
  686. pos = v3n(mouse.hit.x,torso.Position.y-3,mouse.hit.z)
  687. p.CFrame = cfn(torso.Position-v3n(0,3,0),pos)*cfn(0,0,-11)
  688. end
  689. wall1 = T.P(20,1,10,'Black',0,true,true)
  690. wall2 = T.P(20,1,10,'Black',0,true,true)
  691. for i,v in pairs({'Top','Left','Right','Front','Bottom','Back'}) do
  692. wall1[v..'Surface'] = 'Weld'
  693. wall2[v..'Surface'] = 'Weld'
  694. end
  695. wall1.CFrame = (p.CFrame*cfn(-10,0,0))*ang(0,math.pi/2,0)
  696. wall2.CFrame = (p.CFrame*cfn(10,0,0))*ang(0,math.pi/2,0)
  697. wall1.Touched:connect(function(hit) damage(hit.Parent,0,false) end)
  698. wall2.Touched:connect(function(hit) damage(hit.Parent,0,false) end)
  699. for i = 0,20,5 do
  700. wait()
  701. wall1.Size,wall2.Size = v3n(20,i,10),v3n(20,i,10)
  702. wall1.CFrame = wall1.CFrame-v3n(0,i/2,0)
  703. wall2.CFrame = wall2.CFrame-v3n(0,i/2,0)
  704. end
  705. for i = 10,5,-2.5 do
  706. wait()
  707. wall1.CFrame = (p.CFrame*cfn(-i,10,0))*ang(0,math.pi/2,0)
  708. wall2.CFrame = (p.CFrame*cfn(i,10,0))*ang(0,math.pi/2,0)
  709. end
  710. wait(.2)
  711. for i = 5,10,2.5 do
  712. wait()
  713. wall1.CFrame = (p.CFrame*cfn(-i,10,0))*ang(0,math.pi/2,0)
  714. wall2.CFrame = (p.CFrame*cfn(i,10,0))*ang(0,math.pi/2,0)
  715. end
  716. for i = 20,0,-5 do
  717. wait()
  718. wall1.Size,wall2.Size = v3n(20,i,10),v3n(20,i,10)
  719. wall1.CFrame = wall1.CFrame-v3n(0,i/2,0)
  720. wall2.CFrame = wall2.CFrame-v3n(0,i/2,0)
  721. end
  722. wall1:Remove() wall2:Remove()
  723. p:Remove()
  724. end
  725. function clap()
  726. lock.R(1) lock.L(1)
  727. for i = 0,90,10 do
  728. wait()
  729. rw.C1 = normposr*ang(M.D(i),0,-M.D(i/(90/50)))
  730. lw.C1 = normposl*ang(M.D(i),0,M.D(i/(90/50)))
  731. end
  732. local po = T.P(5,1,5,'White',1,false,false)
  733. po.CFrame = torso.CFrame + torso.CFrame.lookVector*5
  734. po:BreakJoints()
  735. T.Dec(po,'Top','http://www.roblox.com/asset/?id=74132306')
  736. bv = Instance.new("BodyVelocity",po)
  737. bv.maxForce = v3n()*math.huge
  738. bv.velocity = torso.CFrame.lookVector*40
  739. po.Touched:connect(function(hit)
  740. local hum = damage(hit.Parent,'Moonstrike!;40',true,20)
  741. if hum then
  742. e = Instance.new("Explosion",Workspace)
  743. e.BlastPressure = 0
  744. e.Position = po.Position
  745. po:Remove()
  746. end
  747. end)
  748. debris:AddItem(po,1)
  749. for i = 50,0,-10 do
  750. wait()
  751. rw.C1 = normposr*ang(M.D(i),0,M.D(i))
  752. lw.C1 = normposl*ang(M.D(i),0,-M.D(i))
  753. end
  754. lock.R(0) lock.L(0)
  755. end
  756. function fist()
  757. p = T.P(1,1,1,'Bright red',0,false,false)
  758. msh = T.FM(p,'fist',1,1,1)
  759. wld = T.W(p,larm,0,-1,0,math.pi,0,0,p)
  760. lock.L(1)
  761. for i = 0,180,10 do
  762. wait()
  763. lw.C1 = normposl*ang(M.D(i),0,0)
  764. end
  765. for i = .5,3,.5 do
  766. wait()
  767. p.Size = v3n(i,i,i)
  768. p.Touched:connect(function(hit) damage(hit.Parent,'PUNCH!;5',true,.05) end)
  769. msh.Scale = v3n(i,i,i)
  770. wld.Parent = p
  771. wld.Part1 = larm
  772. wld.C1 = cfn(0,-i+.5,0)*ang(math.pi,-math.pi/2,0)
  773. end
  774. for i = 180,90,-10 do
  775. wait()
  776. lw.C1 = normposl*ang(M.D(i),0,0)
  777. end
  778. for _ = 1,3 do
  779. for i = 90,130,5 do
  780. wait()
  781. lw.C1 = normposl*ang(M.D(i),0,0)
  782. end
  783. for i = 130,90,-5 do
  784. wait()
  785. lw.C1 = normposl*ang(M.D(i),0,0)
  786. end
  787. end
  788. for q = -1,1,2 do
  789. for i = 0,-50,-10 do
  790. wait()
  791. lw.C1 = normposl*ang(M.D(90),0,M.D(i))
  792. end
  793. wld.C1 = cfn(0,-3,0)*ang(math.pi,0,0)
  794. for i = -50,50,10 do
  795. wait()
  796. lw.C1 = normposl*ang(M.D(90),0,M.D(i))
  797. end
  798. for i = 50,0,-10 do
  799. wait()
  800. lw.C1 = normposl*ang(M.D(90),0,M.D(i))
  801. end
  802. end
  803. for i = 70,0,-10 do
  804. wait()
  805. lw.C1 = normposl*ang(M.D(i),0,0)
  806. end
  807. for i = 3,.5,-.5 do
  808. wait()
  809. p.Size = v3n(i,i,i)
  810. msh.Scale = v3n(i,i,i)
  811. wld.Parent = p
  812. wld.Part1 = larm
  813. wld.C1 = cfn(0,-1-i/2,0)*ang(math.pi,-math.pi/2,0)
  814. end
  815. for i = 0,1,.1 do wait() p.Transparency = i end
  816. lock.L(0)
  817. p:Remove()
  818. end
  819. r = .5
  820. function fireyblast()
  821. for i = 1,360,60 do
  822. p = T.P(1,1,1,'White',1,false,false)
  823. T.W(p,rarm,M.Cos(M.D(i))*r,-1,M.Sin(M.D(i))*r,0,0,0)
  824. T.F(p,1,1,'Bright blue','White')
  825. end
  826. end
  827. klist = {
  828. {'f',function() clap() end},
  829. {'e',function() exorcism() end,''},
  830. {'q',function(a) dash(a) end},
  831. {'c',function() fist() end},
  832. {'x',function() fireyblast() end}
  833. }
  834. hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
  835. hop.Selected:connect(function(mouse)
  836. mouse.Button1Up:connect(function() holding = false end)
  837. mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
  838. mouse.KeyDown:connect(function(key) if attacking then return end
  839. for i,v in pairs(klist) do
  840. if key == v[1] then attacking = true v[2](mouse) attacking = false end
  841. end
  842. end)
  843. mouse.Button1Down:connect(function() if attacking then return end attacking = true wallo(mouse) attacking = false end)
  844. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement