Advertisement
lafur

Untitled

Mar 9th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end Player = game.Players.LocalPlayer
  6. Character=Player.Character
  7. mouse = Player:GetMouse()
  8. --Lava=script.Parent.Parent.Damager
  9. it=Instance.new
  10. vt=Vector3.new
  11. cf=CFrame.new
  12. euler=CFrame.fromEulerAnglesXYZ
  13. angles=CFrame.Angles
  14. necko=cf(0,-7,0,-1,-0,-0,0,0,1,0,1,0)
  15. necko2=cf(0,3.5,0,-1,-0,-0,0,0,1,0,1,0)
  16. attack=true
  17. so = function(id,par,vol,pit)
  18. coroutine.resume(coroutine.create(function()
  19. local sou = Instance.new("Sound",par or workspace)
  20. sou.Volume=vol
  21. sou.Pitch=pit or 1
  22. sou.SoundId=id
  23. wait()
  24. sou:play()
  25. game:GetService("Debris"):AddItem(sou,6)
  26. end))
  27. end
  28.  
  29. for _,v in pairs(Character:children()) do
  30. if v.className=="Part" then
  31. v.Anchored=false
  32. end
  33. end
  34.  
  35. function NoOutline(Part)
  36. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  37. end
  38.  
  39. for _,v in pairs(Character:children()) do
  40. if v:IsA("Part") then
  41. v:Remove()
  42. elseif v:IsA("Humanoid") then
  43. v:Remove()
  44. end
  45. end
  46. wait(1)
  47. local Head = Instance.new("Part")
  48. Head.formFactor = 3
  49. Head.CanCollide = true
  50. Head.Name = "Head"
  51. Head.Locked = true
  52. Head.Size = Vector3.new(13.697, 6.848, 6.848)
  53. Head.Parent = Character
  54. Head.Material = "Granite"
  55.  
  56. Head.BrickColor = BrickColor.new("Black")
  57. local smh = Instance.new("SpecialMesh",Head)
  58. smh.Scale = Vector3.new(1.3, 1.3, 1.3)
  59. local kek = Instance.new("PointLight", Head)
  60. kek.Range = 60
  61. local Torso = Instance.new("Part")
  62. Torso.formFactor = 3
  63. Torso.CanCollide = true
  64. Torso.Name = "Torso"
  65. Torso.Locked = true
  66. Torso.Size = Vector3.new(13.697, 13.697, 6.848)
  67. Torso.Parent = Character
  68. Torso.BrickColor = BrickColor.new("Neon orange")
  69. Torso.Material = "Granite"
  70.  
  71. local msht = Instance.new("BlockMesh",Torso)
  72. local RightArm = Instance.new("Part")
  73. RightArm.formFactor = 3
  74. RightArm.CanCollide = true
  75. RightArm.Name = "Right Arm"
  76. RightArm.Locked = true
  77. RightArm.Size = Vector3.new(6.848, 13.697, 6.848)
  78. RightArm.Parent = Character
  79. RightArm.Material = "Granite"
  80. RightArm.BrickColor = BrickColor.new("Neon orange")
  81.  
  82. local mshra = Instance.new("BlockMesh",RightArm)
  83. local LeftArm = Instance.new("Part")
  84. LeftArm.formFactor = 3
  85. LeftArm.CanCollide = true
  86. LeftArm.Name = "Left Arm"
  87. LeftArm.Locked = true
  88. LeftArm.Size = Vector3.new(6.848, 13.697, 6.848)
  89. LeftArm.Parent = Character
  90. LeftArm.Material = "Granite"
  91. LeftArm.BrickColor = BrickColor.new("Neon orange")
  92.  
  93. local mshla = Instance.new("BlockMesh",LeftArm)
  94. local Helmet = Instance.new("Part")
  95. Helmet.formFactor = 3
  96. Helmet.CanCollide = true
  97. Helmet.Name = "Helmet"
  98. Helmet.Locked = true
  99. Helmet.Size = Vector3.new(2, 2, 2)
  100. Helmet.Parent = Character
  101.  
  102. local smh = Instance.new("SpecialMesh",Helmet)
  103. smh.Scale = Vector3.new(7, 7, 7)
  104. smh.MeshId = "http://www.roblox.com/asset/?id=47623768"
  105. smh.TextureId = "http://www.roblox.com/asset/?id=47623755"
  106.  
  107.  
  108. Head=Character.Head
  109. Torso=Character.Torso
  110. LeftArm=Character["Left Arm"]
  111. RightArm=Character["Right Arm"]
  112. Helmet=Character.Helmet
  113.  
  114.  
  115.  
  116. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  117. local fp = it("Part")
  118. fp.formFactor = formfactor
  119. fp.Parent = parent
  120. fp.Reflectance = reflectance
  121. fp.Transparency = transparency
  122. fp.CanCollide = false
  123. fp.Locked=true
  124. fp.BrickColor = brickcolor
  125. fp.Name = name
  126. fp.Size = size
  127. fp.Position = Torso.Position
  128. NoOutline(fp)
  129. fp.BottomSurface="Smooth"
  130. fp.TopSurface="Smooth"
  131. fp:BreakJoints()
  132. return fp
  133. end
  134.  
  135. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  136. local mesh = it(Mesh)
  137. mesh.Parent = part
  138. if Mesh=="SpecialMesh" then
  139. mesh.MeshType = meshtype
  140. mesh.MeshId = meshid
  141. end
  142. mesh.Offset=offset
  143. mesh.Scale=scale
  144. return mesh
  145. end
  146.  
  147. function weld(parent,part0,part1,c0)
  148. local weld = it("Weld")
  149. weld.Parent = parent
  150. weld.Part0 = part0
  151. weld.Part1 = part1
  152. weld.C0 = c0
  153. return weld
  154. end
  155.  
  156.  
  157. function findNearestTorso(pos)
  158. local list = game.Workspace:children()
  159. local torso = nil
  160. local dist = 130
  161. local temp = nil
  162. local human = nil
  163. local temp2 = nil
  164. for x = 1, #list do
  165. temp2 = list[x]
  166. if (temp2.className == "Model") and (temp2.Name~=Character) then
  167. temp = temp2:findFirstChild("Torso")
  168. human = temp2:findFirstChild("Humanoid")
  169. print(human)
  170. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  171. if (temp.Position - pos).magnitude < dist then
  172. torso = temp
  173. dist = (temp.Position - pos).magnitude
  174. end
  175. end
  176. end
  177. end
  178. return torso,dist
  179. end
  180.  
  181. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  182. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  183. prt.Anchored=true
  184. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  185. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  186. coroutine.resume(coroutine.create(function(Part,Mesh)
  187. for i=0,1,delay do
  188. wait()
  189. Part.CFrame=Part.CFrame
  190. Part.Transparency=i
  191. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  192. end
  193. Part.Parent=nil
  194. end),prt,msh)
  195. end
  196.  
  197. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  198. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  199. prt.Anchored=true
  200. prt.CFrame=cframe
  201. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  202. coroutine.resume(coroutine.create(function(Part,Mesh)
  203. for i=0,1,delay do
  204. wait()
  205. Part.CFrame=Part.CFrame
  206. Part.Transparency=i
  207. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  208. end
  209. Part.Parent=nil
  210. end),prt,msh)
  211. end
  212.  
  213. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  214. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  215. prt.Anchored=true
  216. prt.CFrame=cframe
  217. --"http://www.roblox.com/asset/?id=168892465"
  218. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  219. game:GetService("Debris"):AddItem(prt,2)
  220. coroutine.resume(coroutine.create(function(Part,Mesh)
  221. for i=0,1,delay do
  222. wait()
  223. Part.CFrame=Part.CFrame
  224. Part.Transparency=i
  225. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  226. end
  227. Part.Parent=nil
  228. end),prt,msh)
  229. end
  230.  
  231. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  232. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  233. prt.Anchored=true
  234. prt.CFrame=cframe
  235. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  236. game:GetService("Debris"):AddItem(prt,2)
  237. coroutine.resume(coroutine.create(function(Part,Mesh)
  238. for i=0,1,delay do
  239. wait()
  240. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  241. Part.Transparency=i
  242. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  243. end
  244. Part.Parent=nil
  245. end),prt,msh)
  246. end
  247.  
  248. Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
  249. if hit.Parent==nil then
  250. return
  251. end
  252. CPlayer=Bin
  253. h=hit.Parent:FindFirstChild("Humanoid")
  254. for _,v in pairs(hit.Parent:children()) do
  255. if v:IsA("Humanoid") then
  256. h=v
  257. end
  258. end
  259. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  260. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  261. return
  262. end]]
  263. -- hs(hit,1.2)
  264. c=Instance.new("ObjectValue")
  265. c.Name="creator"
  266. c.Value=game:service("Players").LocalPlayer
  267. c.Parent=h
  268. game:GetService("Debris"):AddItem(c,.5)
  269. Damage=math.random(minim,maxim)
  270. -- h:TakeDamage(Damage)
  271. blocked=false
  272. block=hit.Parent:findFirstChild("Block")
  273. if block~=nil then
  274. if block.className=="IntValue" then
  275. if block.Value>0 then
  276. blocked=true
  277. block.Value=block.Value-1
  278. end
  279. end
  280. end
  281. if blocked==false then
  282. h:TakeDamage(Damage)
  283. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  284. else
  285. h:TakeDamage(Damage/2)
  286. showDamage(hit.Parent,Damage,.5,BrickColor.new("Bright blue"))
  287. end
  288. if Type=="Knockdown" then
  289. hum=hit.Parent.Humanoid
  290. hum.PlatformStand=true
  291. coroutine.resume(coroutine.create(function(HHumanoid)
  292. wait(1)
  293. HHumanoid.PlatformStand=false
  294. end),hum)
  295. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  296. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  297. local bodvol=Instance.new("BodyVelocity")
  298. bodvol.velocity=angle*knockback
  299. bodvol.P=5000
  300. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  301. bodvol.Parent=hit
  302. rl=Instance.new("BodyAngularVelocity")
  303. rl.P=3000
  304. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  305. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  306. rl.Parent=hit
  307. game:GetService("Debris"):AddItem(bodvol,.5)
  308. game:GetService("Debris"):AddItem(rl,.5)
  309. elseif Type=="Normal" then
  310. vp=Instance.new("BodyVelocity")
  311. vp.P=500
  312. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  313. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  314. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  315. if knockback>0 then
  316. vp.Parent=hit.Parent.Torso
  317. end
  318. game:GetService("Debris"):AddItem(vp,.5)
  319. elseif Type=="Up" then
  320. local bodyVelocity=Instance.new("BodyVelocity")
  321. bodyVelocity.velocity=vt(0,20,0)
  322. bodyVelocity.P=5000
  323. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  324. bodyVelocity.Parent=hit
  325. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  326. elseif Type=="Snare" then
  327. bp=Instance.new("BodyPosition")
  328. bp.P=2000
  329. bp.D=100
  330. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  331. bp.position=hit.Parent.Torso.Position
  332. bp.Parent=hit.Parent.Torso
  333. game:GetService("Debris"):AddItem(bp,1)
  334. elseif Type=="Freeze" then
  335. BodPos=Instance.new("BodyPosition")
  336. BodPos.P=50000
  337. BodPos.D=1000
  338. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  339. BodPos.position=hit.Parent.Torso.Position
  340. BodPos.Parent=hit.Parent.Torso
  341. BodGy = it("BodyGyro")
  342. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  343. BodGy.P = 20e+003
  344. BodGy.Parent=hit.Parent.Torso
  345. BodGy.cframe = hit.Parent.Torso.CFrame
  346. hit.Parent.Torso.Anchored=true
  347. coroutine.resume(coroutine.create(function(Part)
  348. wait(1.5)
  349. Part.Anchored=false
  350. end),hit.Parent.Torso)
  351. game:GetService("Debris"):AddItem(BodPos,3)
  352. game:GetService("Debris"):AddItem(BodGy,3)
  353. end
  354. c=Instance.new("ObjectValue")
  355. c.Name="creator"
  356. c.Value=Player
  357. c.Parent=h
  358. game:GetService("Debris"):AddItem(c,.5)
  359. CRIT=false
  360. hitDeb=true
  361. AttackPos=6
  362. end
  363. end
  364.  
  365. showDamage=function(Char,Dealt,du,Color)
  366. m=Instance.new("Model")
  367. m.Name=tostring(Dealt)
  368. h=Instance.new("Humanoid")
  369. h.Health=0
  370. h.MaxHealth=0
  371. h.Parent=m
  372. c=Instance.new("Part")
  373. c.Transparency=0
  374. c.BrickColor=Color
  375. c.Name="Head"
  376. c.TopSurface=0
  377. c.BottomSurface=0
  378. c.formFactor="Plate"
  379. c.Size=Vector3.new(1,.4,1)
  380. ms=Instance.new("CylinderMesh")
  381. ms.Scale=Vector3.new(.8,.8,.8)
  382. if CRIT==true then
  383. ms.Scale=Vector3.new(1,1.25,1)
  384. end
  385. ms.Parent=c
  386. c.Reflectance=0
  387. Instance.new("BodyGyro").Parent=c
  388. c.Parent=m
  389. if Char:findFirstChild("Head")~=nil then
  390. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  391. else
  392. c.CFrame=CFrame.new(Char["Torso"].CFrame.p+Vector3.new(0,1.5,0))
  393. end
  394. f=Instance.new("BodyPosition")
  395. f.P=2000
  396. f.D=100
  397. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  398. f.position=c.Position+Vector3.new(0,3,0)
  399. f.Parent=c
  400. game:GetService("Debris"):AddItem(m,.5+du)
  401. c.CanCollide=false
  402. m.Parent=workspace
  403. c.CanCollide=false
  404. end
  405.  
  406. colr = BrickColor.new("Flame reddish orange")
  407.  
  408. con = Damager.Touched:connect(function(part)
  409. if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Name~=Character.Name then
  410. if part:FindFirstChild("fiar") == nil and part:FindFirstChild("glow") == nil then
  411. fiar = Instance.new("Fire")
  412. fiar.Name = "fiar"
  413. fiar.Parent = part
  414. glow = Instance.new("PointLight")
  415. glow.Name = "glow"
  416. glow.Parent = part
  417. glow.Color = colr.Color
  418. end
  419. else
  420. end
  421. end)
  422.  
  423.  
  424. local roar=Instance.new("Sound")
  425. roar.Parent=Head
  426. roar.Volume=1
  427. roar.Pitch=1
  428. roar.SoundId="http://www.roblox.com/asset/?id=172088894"
  429. local roar2=Instance.new("Sound")
  430. roar2.Parent=Head
  431. roar2.Volume=1
  432. roar2.Pitch=1
  433. roar2.SoundId="http://www.roblox.com/asset/?id=172088894"
  434. local Neck=weld(Torso,Head,Torso,cf(0,0,0))
  435. Neck.C0=necko*euler(0.2,0,0)
  436. Neck.C1=necko2
  437. local Helmweld=weld(Torso,Head,Helmet,cf(0,3.8,0.5)*euler(0,3.14,0))
  438. local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  439. local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  440. RW.C0=cf(10,1,3)*euler(-0.8,0,0.2)
  441. RW.C1=cf(0,1,0)
  442. LW.C0=cf(-10,1,3)*euler(-0.8,0,-0.2)
  443. LW.C1=cf(0,1,0)
  444. Torso.CFrame=Torso.CFrame*cf(0,10,0)
  445. local BodPos=it("BodyPosition")
  446. BodPos.P=50000
  447. BodPos.D=1000
  448. BodPos.maxForce=vt(math.huge,math.huge,math.huge)
  449. BodPos.position=Damager.Position+vt(0,7,0)
  450. BodPos.Parent=Torso
  451. local BodGy=it("BodyGyro")
  452. BodGy.maxTorque=vt(4e+005,4e+005,4e+005)*math.huge
  453. BodGy.P=20e+003
  454. BodGy.Parent=Torso
  455. BodGy.cframe=Torso.CFrame
  456. --BodGy.cframe=cf(0,0,0)*euler(0,3.14*i,0)
  457. for _,v in pairs(Character:children()) do
  458. if v.className=="Part" then
  459. v.Transparency=1
  460. end
  461. end
  462. --[[dur=script.Parent.Parent[" "]
  463. Hum=dur.Humanoid
  464. while Hum.Health>0 do
  465. wait()
  466. end]]
  467. local Humanoid=Instance.new("Humanoid")
  468. Humanoid.Parent=Character
  469. Humanoid.MaxHealth=4000
  470. Humanoid.Health=Humanoid.MaxHealth
  471. coroutine.resume(coroutine.create(function()
  472. for i=1,50 do
  473. Humanoid.MaxHealth=4000
  474. Humanoid.Health=4000
  475. wait()
  476. end
  477. --_G["AddHumanoidDamageTag"](Humanoid,workspace.Map,1,"Ranged","Fire","Magic")
  478. end))
  479. for _,v in pairs(Character:children()) do
  480. if v.className=="Part" then
  481. v.Transparency=0
  482. end
  483. end
  484.  
  485. function Fireball()
  486. attack=false
  487. for i=0,1,0.1 do
  488. wait()
  489. Neck.C0=necko*euler(0.2-0.8*i,0,0)
  490. RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i)
  491. RW.C1=cf(0,1+4*i,0)
  492. LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i)
  493. LW.C1=cf(0,1+4*i,0)
  494. end
  495. refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
  496. refwld=weld(refprt,refprt,Torso,cf(0,-15,0))
  497. game:GetService("Debris"):AddItem(refprt,4)
  498. fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10))
  499. fireball.Anchored = true
  500. fireball.CFrame = refprt.CFrame
  501. frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
  502. so("http://roblox.com/asset/?id=32791565",fireball,1,1)
  503. prop=Instance.new("RocketPropulsion")
  504. prop.MaxSpeed=500000
  505. prop.CartoonFactor=0
  506. prop.MaxThrust=1000000
  507. prop.Parent=fireball
  508. prop.Target=refprt
  509. prop.ThrustD=1.5
  510. prop.TurnD=0
  511. prop.TurnP=0
  512. prop:Fire()
  513. fire=Instance.new("Fire")
  514. fire.Parent=fireball
  515. fire.Color=Color3.new(255/255,127/255,0)
  516. fire.SecondaryColor=Color3.new(0,0,0)
  517. fire.Size=5
  518. fire.Heat=20
  519. n=2
  520. for i=0,1,0.05 do
  521. wait()
  522. frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i)
  523. refwld.C0=cf(0,-15-5*i,0)
  524. fire.Size=5+10*i
  525. fire.Heat=20+10*i
  526. Neck.C0=necko*euler(-0.6-0.1*i*n,0,0)
  527. RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n)
  528. RW.C1=cf(0,5,0)
  529. LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n)
  530. LW.C1=cf(0,5,0)
  531. n=n-0.05
  532. end
  533. n=2
  534. for i=0,1,0.1 do
  535. wait()
  536. frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i)
  537. fire.Size=15+5*i
  538. fire.Heat=30+10*i
  539. Neck.C0=necko*euler(-0.7-0.1*i*n,0,0)
  540. RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n)
  541. RW.C1=cf(0,5,0)
  542. LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n)
  543. LW.C1=cf(0,5,0)
  544. n=n-0.1
  545. end
  546. refprt.Parent=nil
  547. debounce=false
  548. con1=fireball.Touched:connect(function(hit)
  549. if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Effect" then
  550. debounce=true
  551. fireball.Parent=nil
  552. CF=fireball.CFrame
  553. POS=fireball.Position
  554. b=Instance.new("Explosion")
  555. b.Parent=workspace
  556. b.Position=fireball.Position
  557. b.BlastPressure=0
  558. refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  559. refprt2.CFrame=CF
  560. refprt2.Anchored=true
  561. so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6)
  562. game:GetService("Debris"):AddItem(refprt2,1)
  563. for _,c in pairs(workspace:children()) do
  564. local hum=c:findFirstChild("Humanoid")
  565. if hum~=nil then
  566. local head=c:findFirstChild("Torso")
  567. if head~=nil then
  568. local targ=head.Position-POS
  569. local mag=targ.magnitude
  570. if mag<=20 and c.Name~=Character.Name then
  571. Damagefunc(head,25,40,math.random(50,100),"Knockdown",refprt2)
  572. end
  573. end
  574. end
  575. end
  576. coroutine.resume(coroutine.create(function(tehCF)
  577. MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05)
  578. for i=0,1,0.1 do
  579. wait(0.1)
  580. MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.1)
  581. end
  582. end),CF)
  583. end
  584. end)
  585. prop.ThrustP=2
  586. target=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
  587. target.Position = mouse.Hit.p
  588. fireball.Anchored = false
  589. prop.Target=target
  590. for i=0,1,0.1 do
  591. wait()
  592. Neck.C0=necko*euler(-0.7+0.7*i,0,0)
  593. RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i)
  594. RW.C1=cf(0,5,0)
  595. LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i)
  596. LW.C1=cf(0,5,0)
  597. end
  598. game:GetService("Debris"):AddItem(fireball,3)
  599. wait(0.4)
  600. for i=0,1,0.1 do
  601. wait()
  602. Neck.C0=necko*euler(0.2*i,0,0)
  603. RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i)
  604. RW.C1=cf(0,5-4*i,0)
  605. LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i)
  606. LW.C1=cf(0,5-4*i,0)
  607. end
  608. attack=true
  609. end
  610.  
  611. function Slam()
  612. attack=false
  613. --COME ON AND SLAM
  614. --AND WELCOME TO THE JAM
  615. for i=0,1,0.05 do
  616. wait()
  617. Neck.C0=necko*euler(0.2-0.8*i,0,0)
  618. RW.C0=cf(10-4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,0.2-0.8*i)
  619. RW.C1=cf(0,1+4*i,0)
  620. LW.C0=cf(-10+4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,-0.2+0.8*i)
  621. LW.C1=cf(0,1+4*i,0)
  622. end
  623. n=2
  624. for i=0,1,0.05 do
  625. wait()
  626. Neck.C0=necko*euler(-0.6-0.2*i*n,0,0)
  627. RW.C0=cf(6,5,0)*euler(-2.8-0.2*i*n,0,-0.6)
  628. RW.C1=cf(0,5,0)
  629. LW.C0=cf(-6,5,0)*euler(-2.8-0.2*i*n,0,0.6)
  630. LW.C1=cf(0,5,0)
  631. n=n-0.05
  632. end
  633. for i=0,1,0.2 do
  634. wait()
  635. Neck.C0=necko*euler(-0.8+1*i,0,0)
  636. RW.C0=cf(6,5-3*i,2*i)*euler(-3+2*i,0,-0.6)
  637. RW.C1=cf(0,5-3*i,0)
  638. LW.C0=cf(-6,5-3*i,2*i)*euler(-3+2*i,0,0.6)
  639. LW.C1=cf(0,5-3*i,0)
  640. end
  641. tehCF=Torso.CFrame*cf(0,-5,10)
  642. refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
  643. refprt.Anchored=true
  644. refprt.CFrame=tehCF
  645. so("http://roblox.com/asset/?id=157878578",refprt,1,0.4)
  646. so("http://roblox.com/asset/?id=2101148",refprt,1,0.6)
  647. game:GetService("Debris"):AddItem(refprt,2)
  648. MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.05)
  649. MagicRing(BrickColor.new("Really red"),cf(refprt.Position)*euler(1.57,0,0),1,1,1,3,3,3,0.02)
  650. for _,c in pairs(workspace:children()) do
  651. local hum=c:findFirstChild("Humanoid")
  652. if hum~=nil then
  653. local head=c:findFirstChild("Torso")
  654. if head~=nil then
  655. local targ=head.Position-refprt.Position
  656. local mag=targ.magnitude
  657. if mag<=30 and c.Name~=Character.Name then
  658. Damagefunc(head,15,30,math.random(50,100),"",refprt)
  659. end
  660. end
  661. end
  662. end
  663. coroutine.resume(coroutine.create(function(Part)
  664. wait(0.5)
  665. for _,c in pairs(workspace:children()) do
  666. local hum=c:findFirstChild("Humanoid")
  667. if hum~=nil then
  668. local head=c:findFirstChild("Torso")
  669. if head~=nil then
  670. local targ=head.Position-Part.Position
  671. local mag=targ.magnitude
  672. if mag<=40 and c.Name~=Character.Name then
  673. Damagefunc(head,10,20,math.random(20,40),"Knockdown",refprt)
  674. end
  675. end
  676. end
  677. end
  678. end),refprt)
  679. wait(0.2)
  680. for i=0,1,0.1 do
  681. wait()
  682. Neck.C0=necko*euler(0.2,0,0)
  683. RW.C0=cf(6+4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,-0.6+0.8*i)
  684. RW.C1=cf(0,2-1*i,0)
  685. LW.C0=cf(-6-4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,0.6-0.8*i)
  686. LW.C1=cf(0,2-1*i,0)
  687. end
  688. attack=true
  689. end
  690.  
  691. function Roar()
  692. attack=false
  693. for i=0,1,0.05 do
  694. wait()
  695. Neck.C0=necko*euler(0.2+0.2*i,0,0)
  696. RW.C0=cf(10-4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,0.2-0.8*i)
  697. RW.C1=cf(0,1+3*i,0)
  698. LW.C0=cf(-10+4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,-0.2+0.8*i)
  699. LW.C1=cf(0,1+3*i,0)
  700. end
  701. n=2
  702. for i=0,1,0.05 do
  703. wait()
  704. Neck.C0=necko*euler(0.4+0.1*i*n,0,0)
  705. RW.C0=cf(6,4,0)*euler(-2.2+0.1*i*n,0,-0.6)
  706. RW.C1=cf(0,4,0)
  707. LW.C0=cf(-6,4,0)*euler(-2.2+0.1*i*n,0,0.6)
  708. LW.C1=cf(0,4,0)
  709. n=n-0.05
  710. end
  711. roar:Play()
  712. roar2:Play()
  713. for i=0,1,0.2 do
  714. wait()
  715. Neck.C0=necko*euler(0.5-0.7*i,0,0)
  716. RW.C0=cf(6+4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,-0.6+1.2*i)
  717. RW.C1=cf(0,4-3*i,0)
  718. LW.C0=cf(-6-4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,0.6-1.2*i)
  719. LW.C1=cf(0,4-3*i,0)
  720. noe=math.random(10,20)
  721. MagicRing(BrickColor.new("Really red"),Head.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,noe,noe,1,0.05)
  722. end
  723. for _,c in pairs(workspace:children()) do
  724. local hum=c:findFirstChild("Humanoid")
  725. if hum~=nil then
  726. local head=c:findFirstChild("Torso")
  727. if head~=nil then
  728. local targ=head.Position-Head.Position
  729. local mag=targ.magnitude
  730. if mag<=100 and c.Name~=Character.Name then
  731. Damagefunc(head,40,40,math.random(100,150),"Knockdown",Head)
  732. end
  733. end
  734. end
  735. end
  736. n=2
  737. for i=0,1,0.2 do
  738. wait()
  739. Neck.C0=necko*euler(-0.2-0.1*i*n,0,0)
  740. RW.C0=cf(10,1,-1.8-0.2*i*n)*euler(0.6+0.1*i*n,0,0.6+0.1*i*n)
  741. RW.C1=cf(0,1,0)
  742. LW.C0=cf(-10,1,-1.8-0.2*i*n)*euler(0.6+0.1*i*n,0,-0.6-0.1*i*n)
  743. LW.C1=cf(0,1,0)
  744. noe=math.random(10,20)
  745. MagicRing(BrickColor.new("Really red"),Head.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,noe,noe,1,0.05)
  746. n=n-0.2
  747. end
  748. wait(0.5)
  749. for i=0,1,0.1 do
  750. wait()
  751. Neck.C0=necko*euler(-0.3+0.5*i,0,0)
  752. RW.C0=cf(10,1,-2+5*i)*euler(0.7-1.5*i,0,0.7-0.5*i)
  753. RW.C1=cf(0,1,0)
  754. LW.C0=cf(-10,1,-2+5*i)*euler(0.7-1.5*i,0,-0.7+0.5*i)
  755. LW.C1=cf(0,1,0)
  756. end
  757. attack=true
  758. end
  759.  
  760. function Scatterball()
  761. attack=false
  762. for i=0,1,0.1 do
  763. wait()
  764. Neck.C0=necko*euler(0.2-0.8*i,0,0)
  765. RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i)
  766. RW.C1=cf(0,1+4*i,0)
  767. LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i)
  768. LW.C1=cf(0,1+4*i,0)
  769. end
  770. refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
  771. refwld=weld(refprt,refprt,Torso,cf(0,-15,0))
  772. game:GetService("Debris"):AddItem(refprt,4)
  773. fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10))
  774. frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
  775. fireball.Anchored = true
  776. fireball.CFrame = refprt.CFrame
  777. so("http://roblox.com/asset/?id=32791565",fireball,1,1)
  778. prop=Instance.new("RocketPropulsion")
  779. prop.MaxSpeed=500000
  780. prop.CartoonFactor=0
  781. prop.MaxThrust=1000000
  782. prop.Parent=fireball
  783. prop.Target=refprt
  784. prop.ThrustD=1.5
  785. prop.TurnD=0
  786. prop.TurnP=0
  787. prop:Fire()
  788. fire=Instance.new("Fire")
  789. fire.Parent=fireball
  790. fire.Color=Color3.new(255/255,127/255,0)
  791. fire.SecondaryColor=Color3.new(0,0,0)
  792. fire.Size=5
  793. fire.Heat=20
  794. n=2
  795. con1=fireball.Touched:connect(function(hit)
  796. if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then
  797. debounce=true
  798. minifireball.Parent=nil
  799. CF=minifireball.CFrame
  800. POS=minifireball.Position
  801. refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  802. refprt2.CFrame=CF
  803. refprt2.Anchored=true
  804. so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6)
  805. game:GetService("Debris"):AddItem(refprt2,1)
  806. Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2)
  807. --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso)
  808. coroutine.resume(coroutine.create(function(tehCF)
  809. MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05)
  810. for i=0,1,0.1 do
  811. wait(0.1)
  812. MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1)
  813. end
  814. end),CF)
  815. end
  816. end)
  817. for i=0,1,0.05 do
  818. wait()
  819. frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i)
  820. refwld.C0=cf(0,-15-5*i,0)
  821. fire.Size=5+10*i
  822. fire.Heat=20+10*i
  823. Neck.C0=necko*euler(-0.6-0.1*i*n,0,0)
  824. RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n)
  825. RW.C1=cf(0,5,0)
  826. LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n)
  827. LW.C1=cf(0,5,0)
  828. n=n-0.05
  829. end
  830. n=2
  831. for i=0,1,0.1 do
  832. wait()
  833. frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i)
  834. fire.Size=15+5*i
  835. fire.Heat=30+10*i
  836. Neck.C0=necko*euler(-0.7-0.1*i*n,0,0)
  837. RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n)
  838. RW.C1=cf(0,5,0)
  839. LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n)
  840. LW.C1=cf(0,5,0)
  841. n=n-0.1
  842. end
  843. wait(0.5)
  844. fireball.Anchored = false
  845. fireball.Parent=nil
  846. refprt.Parent=nil
  847. for _,c in pairs(workspace:children()) do
  848. local hum=c:findFirstChild("Humanoid")
  849. if hum~=nil then
  850. local head=c:findFirstChild("Torso")
  851. if head~=nil then
  852. local targ=head.Position-Torso.Position
  853. local mag=targ.magnitude
  854. if mag<=150 and c.Name~=Character.Name then
  855. minifireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Mini Fireball",vt(10,10,10))
  856. minifireball.CFrame=fireball.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  857. minifrblmsh=mesh("SpecialMesh",minifireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
  858. game:GetService("Debris"):AddItem(minifireball,3)
  859. so("http://roblox.com/asset/?id=32791565",fireball,1,1)
  860. prop=Instance.new("RocketPropulsion")
  861. prop.MaxSpeed=500000
  862. prop.CartoonFactor=0
  863. prop.MaxThrust=1000000
  864. prop.Parent=minifireball
  865. prop.Target=head
  866. prop.ThrustD=1.5
  867. prop.TurnD=0
  868. prop.TurnP=0
  869. prop.ThrustP=10
  870. prop:Fire()
  871. fire=Instance.new("Fire")
  872. fire.Parent=minifireball
  873. fire.Color=Color3.new(255/255,127/255,0)
  874. fire.SecondaryColor=Color3.new(0,0,0)
  875. fire.Size=5
  876. fire.Heat=10
  877. prop.Target=head
  878. con2=minifireball.Touched:connect(function(hit)
  879. if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then
  880. debounce=true
  881. minifireball.Parent=nil
  882. CF=minifireball.CFrame
  883. POS=minifireball.Position
  884. refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  885. refprt2.CFrame=CF
  886. refprt2.Anchored=true
  887. so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6)
  888. game:GetService("Debris"):AddItem(refprt2,1)
  889. Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2)
  890. --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso)
  891. coroutine.resume(coroutine.create(function(tehCF)
  892. MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05)
  893. for i=0,1,0.1 do
  894. wait(0.1)
  895. MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1)
  896. end
  897. end),CF)
  898. end
  899. end)
  900. end
  901. end
  902. end
  903. end
  904. for i=0,1,0.1 do
  905. wait()
  906. Neck.C0=necko*euler(-0.7+0.7*i,0,0)
  907. RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i)
  908. RW.C1=cf(0,5,0)
  909. LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i)
  910. LW.C1=cf(0,5,0)
  911. end
  912. game:GetService("Debris"):AddItem(fireball,3)
  913. wait(0.4)
  914. for i=0,1,0.1 do
  915. wait()
  916. Neck.C0=necko*euler(0.2*i,0,0)
  917. RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i)
  918. RW.C1=cf(0,5-4*i,0)
  919. LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i)
  920. LW.C1=cf(0,5-4*i,0)
  921. end
  922. attack=true
  923. end
  924.  
  925. function Warp()
  926. attack=false
  927. for i=0,1,0.1 do
  928. wait()
  929. Neck.C0=necko*euler(0.2-0.2*i,0,0)
  930. RW.C0=cf(10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,0.2+1.37*i)
  931. RW.C1=cf(0,1+2.5*i,0)
  932. LW.C0=cf(-10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,-0.2-1.37*i)
  933. LW.C1=cf(0,1+2.5*i,0)
  934. end
  935. so("http://www.roblox.com/asset/?id=2101137",Torso,1,0.6)
  936. n=0
  937. for i=0,1,0.02 do
  938. wait()
  939. if n==5 then
  940. n=0
  941. WaveEffect(BrickColor.new("Bright red"),cf(Torso.Position)*cf(0,-7,0)*euler(0,math.random(-50,50),0),1,1,1,5+5*i,2+2*i,5+5*i,0.1)
  942. end
  943. n=n+1
  944. end
  945. MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,0,0),200,200,200,-10,-10,-10,0.05)
  946. MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(1.57,0,0),200,200,200,-10,-10,-10,0.05)
  947. MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,1.57,0),200,200,200,-10,-10,-10,0.05)
  948. for _,c in pairs(workspace:children()) do
  949. local hum=c:findFirstChild("Humanoid")
  950. if hum~=nil then
  951. local head=c:findFirstChild("Torso")
  952. if head~=nil then
  953. local targ=head.Position-Torso.Position
  954. local mag=targ.magnitude
  955. if mag<=200 and c.Name~=Character.Name then
  956. Damagefunc(head,10,20,math.random(-100,-50),"Knockdown",Torso)
  957. end
  958. end
  959. end
  960. end
  961. so("http://www.roblox.com/asset/?id=161006182",Torso,1,0.2)
  962. so("http://www.roblox.com/asset/?id=158210228",Torso,1,0.4)
  963. for i=0,1,0.1 do
  964. wait()
  965. Neck.C0=necko*euler(0.2*i,0,0)
  966. RW.C0=cf(10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,1.57-1.37*i)
  967. RW.C1=cf(0,3.5-2.5*i,0)
  968. LW.C0=cf(-10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,-1.57+1.37*i)
  969. LW.C1=cf(0,3.5-2.5*i,0)
  970. end
  971. attack=true
  972. end
  973. mouse.Button1Down:connect(function()
  974.  
  975. end)
  976. function onKeyDown(key)
  977. if attack == true then
  978. if key == "f" then
  979. Roar()
  980. elseif key == "z" then
  981. Slam()
  982. elseif key == "x" then
  983. Warp()
  984. elseif key == "c" then
  985. Fireball()
  986. elseif key == "v" then
  987. Scatterball()
  988. end
  989. end
  990. end
  991. mouse.KeyDown:connect(onKeyDown)
  992. coroutine.resume(coroutine.create(function(Hum)
  993. while Hum.Health>0 do
  994. wait()
  995. end
  996. Hum.Parent=nil
  997. BodPos.Parent=nil
  998. for _,i in pairs(Torso:children()) do
  999. if i.className=="Weld" then
  1000. i.Parent=nil
  1001. end
  1002. end
  1003. for _,i in pairs(Character:children()) do
  1004. if i.className=="Part" then
  1005. coroutine.resume(coroutine.create(function(Part)
  1006. Part.CanCollide=false
  1007. local f=it("Fire")
  1008. f.Parent=Part
  1009. f.Color=Color3.new(255/255,0,0)
  1010. f.Heat=20
  1011. f.Size=30
  1012. f.SecondaryColor=Color3.new(0,0,0)
  1013. local BodPos2=it("BodyPosition")
  1014. BodPos2.P=50000
  1015. BodPos2.D=1000
  1016. BodPos2.maxForce=vt(math.huge,math.huge,math.huge)
  1017. BodPos2.position=Part.Position
  1018. BodPos2.Parent=Part
  1019. local rand1=math.random(-50,50)/100
  1020. local rand2=math.random(-50,50)/100
  1021. for i=0,100 do
  1022. wait()
  1023. BodPos2.position=BodPos2.position+vt(rand1,-0.5,rand2)
  1024. end
  1025. end),i)
  1026. end
  1027. end
  1028. wait(5)
  1029. Character.Parent=nil
  1030. end),Humanoid)
  1031. --[[while Humanoid.Health>0 do
  1032. wait(1)
  1033. target,distance=findNearestTorso(Torso.Position)
  1034. if target~=nil then
  1035. print(distance)
  1036. local pos=Vector3.new(target.Parent.Torso.Position.x,Torso.Position.Y,target.Parent.Torso.Position.z)
  1037. BodGy.cframe=CFrame.new(Torso.Position,pos)*euler(-0.2,3.14,0)
  1038. if math.random(1,10)==1 then
  1039. print("ror")
  1040. Roar()
  1041. if math.random(1,2)==1 then
  1042. Warp()
  1043. Slam()
  1044. end
  1045. else
  1046. if distance<=150 and distance>=50 then
  1047. dur=math.random(1,3)
  1048. if dur==1 then
  1049. Warp()
  1050. Slam()
  1051. else
  1052. attack=math.random(1,2)
  1053. if attack==1 then Fireball()
  1054. elseif attack==2 then Scatterball()
  1055. end
  1056. end
  1057. else
  1058. attack=math.random(1,3)
  1059. if attack==1 then Fireball()
  1060. elseif attack==2 then Slam()
  1061. elseif attack==3 then Scatterball()
  1062. end
  1063. end
  1064. end
  1065. --Fireball()
  1066. --Slam()
  1067. --Roar()
  1068. --Scatterball()
  1069. --Warp()
  1070. end
  1071. Torso.CFrame=Torso.CFrame*cf(0,10,0)
  1072. BodPos.position=Lava.Position+vt(0,2,0)
  1073. end]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement