Advertisement
Irongolen14

WOW

Feb 7th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 149.92 KB | None | 0 0
  1. --Wings Wings Gifted by Made Rosemarijohn2, Local Script!
  2. --Space Two Time
  3. --Down Press Q
  4. --Wings Spin Press A Two Time
  5. --Wings Spin Press D Two Time
  6.  
  7. --Angel Wings Gifted Made by Rosemarijohn2, Local Script!
  8. --Space Two Time
  9. --Down Press Q
  10. --Wings Spin Press A Two Time
  11. --Wings Spin Press D Two Time
  12.  
  13. script.Parent = nil
  14.  
  15. function fly()
  16.  
  17. for i,v in pairs(script:GetChildren()) do
  18.  
  19. pcall(function() v.Value = "" end)
  20.  
  21. game:GetService("Debris"):AddItem(v,.1)
  22.  
  23. end
  24.  
  25. function weld(p0,p1,c0,c1,par)
  26.  
  27. local w = Instance.new("Weld",p0 or par)
  28.  
  29. w.Part0 = p0
  30.  
  31. w.Part1 = p1
  32.  
  33. w.C0 = c0 or CFrame.new()
  34.  
  35. w.C1 = c1 or CFrame.new()
  36.  
  37. return w
  38.  
  39. end
  40.  
  41. local motors = {}
  42.  
  43. function motor(p0,p1,c0,c1,des,vel,par)
  44.  
  45. local w = Instance.new("Motor6D",p0 or par)
  46.  
  47. w.Part0 = p0
  48.  
  49. w.Part1 = p1
  50.  
  51. w.C0 = c0 or CFrame.new()
  52.  
  53. w.C1 = c1 or CFrame.new()
  54.  
  55. w.MaxVelocity = tonumber(vel) or .05
  56.  
  57. w.DesiredAngle = tonumber(des) or 0
  58.  
  59. return w
  60.  
  61. end
  62.  
  63. function lerp(a,b,c)
  64.  
  65. return a+(b-a)*c
  66.  
  67. end
  68.  
  69. function clerp(c1,c2,al)
  70.  
  71. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  72.  
  73. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  74.  
  75. for i,v in pairs(com1) do
  76.  
  77. com1[i] = lerp(v,com2[i],al)
  78.  
  79. end
  80.  
  81. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  82.  
  83. end
  84.  
  85. function ccomplerp(c1,c2,al)
  86.  
  87. local com1 = {c1:components()}
  88.  
  89. local com2 = {c2:components()}
  90.  
  91. for i,v in pairs(com1) do
  92.  
  93. com1[i] = lerp(v,com2[i],al)
  94.  
  95. end
  96.  
  97. return CFrame.new(unpack(com1))
  98.  
  99. end
  100.  
  101. function tickwave(time,length,offset)
  102.  
  103. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  104.  
  105. end
  106.  
  107. function invcol(c)
  108.  
  109. c = c.Color
  110.  
  111. return BrickColor.new(Color3.new(1,1,1))
  112.  
  113. end
  114.  
  115. local oc = oc or function(...) return ... end
  116.  
  117. local plr = game.Players.LocalPlayer
  118.  
  119. local char = plr.Character
  120.  
  121. local tor = char.Torso
  122.  
  123. local hum = char.Humanoid
  124.  
  125. hum.PlatformStand = false
  126.  
  127. pcall(function()
  128.  
  129. char.Wings:Destroy()
  130.  
  131. end)
  132.  
  133. pcall(function()
  134.  
  135. char.Angel:Destroy() -- hat
  136.  
  137. end)
  138.  
  139. local mod = Instance.new("Model",char)
  140.  
  141. mod.Name = "Wings"
  142.  
  143. local special = {
  144.  
  145. Luperds = {"Really black","Really black",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  146.  
  147.  
  148. }
  149.  
  150. local topcolor = invcol(char.Head.BrickColor)
  151.  
  152. local feacolor = BrickColor.new("White")
  153.  
  154. local ptrans = 0
  155.  
  156. local pref = 0
  157.  
  158. local fire = false
  159.  
  160. local fmcol = Color3.new()
  161.  
  162. local fscol = Color3.new()
  163.  
  164. local spec = special[plr.Name:lower()]
  165.  
  166. if spec then
  167.  
  168. topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
  169.  
  170. end
  171.  
  172. local part = Instance.new("Part")
  173.  
  174. part.FormFactor = "Custom"
  175.  
  176. part.Size = Vector3.new(.2,.2,.2)
  177.  
  178. part.TopSurface,part.BottomSurface = 0,0
  179.  
  180. part.CanCollide = false
  181.  
  182. part.BrickColor = topcolor
  183.  
  184. part.Transparency = ptrans
  185.  
  186. part.Reflectance = pref
  187.  
  188. local ef = Instance.new("Fire",fire and part or nil)
  189.  
  190. ef.Size = .15
  191.  
  192. ef.Color = fmcol or Color3.new(2,2,2)
  193.  
  194. ef.SecondaryColor = fscol or Color3.new(0,0,0)
  195.  
  196. part:BreakJoints()
  197.  
  198.  
  199. function newpart()
  200.  
  201. local clone = part:Clone()
  202.  
  203. clone.Parent = mod
  204.  
  205. clone:BreakJoints()
  206.  
  207. return clone
  208.  
  209. end
  210.  
  211. local feath = newpart()
  212.  
  213. feath.BrickColor = feacolor
  214.  
  215. feath.Transparency = 0
  216.  
  217. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  218.  
  219. function newfeather()
  220.  
  221. local clone = feath:Clone()
  222.  
  223. clone.Parent = mod
  224.  
  225. clone:BreakJoints()
  226.  
  227. return clone
  228.  
  229. end
  230.  
  231.  
  232. ---------- RIGHT WING
  233.  
  234. local r1 = newpart()
  235.  
  236. r1.Size = Vector3.new(.3,1.5,.3)*1.2
  237.  
  238. local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
  239.  
  240. local r2 = newpart()
  241.  
  242. r2.Size = Vector3.new(.4,1.8,.4)*1.2
  243.  
  244. local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
  245.  
  246. local r3 = newpart()
  247.  
  248. r3.Size = Vector3.new(.3,2.2,.3)*1.2
  249.  
  250. local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
  251.  
  252. local r4 = newpart()
  253.  
  254. r4.Size = Vector3.new(.25,1.2,.25)*1.2
  255.  
  256. local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
  257.  
  258. local feather = newfeather()
  259.  
  260. feather.Mesh.Scale = Vector3.new(1,1,1)
  261.  
  262. feather.Size = Vector3.new(.4,3,.3)
  263.  
  264. weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  265.  
  266. feather = newfeather()
  267.  
  268. feather.Mesh.Scale = Vector3.new(1,1,1)
  269.  
  270. feather.Size = Vector3.new(.4,2.3,.3)
  271.  
  272. weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  273.  
  274. feather = newfeather()
  275.  
  276. feather.Mesh.Scale = Vector3.new(1,1,1)
  277.  
  278. feather.Size = Vector3.new(.35,2.2,.25)
  279.  
  280. weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  281.  
  282. local rf3 = {}
  283.  
  284. for i=0,7 do
  285.  
  286. feather = newfeather()
  287.  
  288. feather.Mesh.Scale = Vector3.new(1,1,1)
  289.  
  290. feather.Size = Vector3.new(.45,2.2,.35)
  291.  
  292. table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  293.  
  294. end
  295.  
  296. local rf2 = {}
  297.  
  298. for i=0,6 do
  299.  
  300. feather = newfeather()
  301.  
  302. feather.Mesh.Scale = Vector3.new(1,1,1)
  303.  
  304. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  305.  
  306. table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  307.  
  308. end
  309.  
  310. local rf1 = {}
  311.  
  312. for i=0,6 do
  313.  
  314. feather = newfeather()
  315.  
  316. feather.Mesh.Scale = Vector3.new(1,1,1)
  317.  
  318. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  319.  
  320. table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  321.  
  322. end
  323.  
  324. ---------- LEFT WING
  325.  
  326. local l1 = newpart()
  327.  
  328. l1.Size = Vector3.new(.3,1.5,.3)*1.2
  329.  
  330. local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
  331.  
  332. local l2 = newpart()
  333.  
  334. l2.Size = Vector3.new(.4,1.8,.4)*1.2
  335.  
  336. local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
  337.  
  338. local l3 = newpart()
  339.  
  340. l3.Size = Vector3.new(.3,2.2,.3)*1.2
  341.  
  342. local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
  343.  
  344. local l4 = newpart()
  345.  
  346. l4.Size = Vector3.new(.25,1.2,.25)*1.2
  347.  
  348. local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
  349.  
  350. local feather = newfeather()
  351.  
  352. feather.Mesh.Scale = Vector3.new(1,1,1)
  353.  
  354. feather.Size = Vector3.new(.4,3,.3)
  355.  
  356. weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  357.  
  358. feather = newfeather()
  359.  
  360. feather.Mesh.Scale = Vector3.new(1,1,1)
  361.  
  362. feather.Size = Vector3.new(.4,2.3,.3)
  363.  
  364. weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  365.  
  366. feather = newfeather()
  367.  
  368. feather.Mesh.Scale = Vector3.new(1,1,1)
  369.  
  370. feather.Size = Vector3.new(.35,2.2,.25)
  371.  
  372. weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  373.  
  374. local lf3 = {}
  375.  
  376. for i=0,7 do
  377.  
  378. feather = newfeather()
  379.  
  380. feather.Mesh.Scale = Vector3.new(1,1,1)
  381.  
  382. feather.Size = Vector3.new(.45,2.2,.35)
  383.  
  384. table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  385.  
  386. end
  387.  
  388. local lf2 = {}
  389.  
  390. for i=0,6 do
  391.  
  392. feather = newfeather()
  393.  
  394. feather.Mesh.Scale = Vector3.new(1,1,1)
  395.  
  396. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  397.  
  398. table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  399.  
  400. end
  401.  
  402. local lf1 = {}
  403.  
  404. for i=0,6 do
  405.  
  406. feather = newfeather()
  407.  
  408. feather.Mesh.Scale = Vector3.new(1,1,1)
  409.  
  410. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  411.  
  412. table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  413.  
  414. end
  415.  
  416. local rwing = {rm1,rm2,rm3,rm4}
  417.  
  418. local lwing = {lm1,lm2,lm3,lm4}
  419.  
  420. local oc0 = {}
  421.  
  422. for i,v in pairs(rwing) do
  423.  
  424. oc0[v] = v.C0
  425.  
  426. end
  427.  
  428. for i,v in pairs(lwing) do
  429.  
  430. oc0[v] = v.C0
  431.  
  432. end
  433.  
  434. function gotResized()
  435.  
  436. if lastsize then
  437.  
  438. if tor.Size == lastsize then return end -- This shouldn't happen?
  439.  
  440. local scaleVec = tor.Size/lastsize
  441.  
  442. for i,v in pairs(oc0) do
  443.  
  444. oc0[i] = v-v.p+scaleVec*v.p
  445.  
  446. end
  447.  
  448. lastsize = tor.Size
  449.  
  450. end
  451.  
  452. lastsize = tor.Size
  453.  
  454. end
  455.  
  456. tor.Changed:connect(function(p)
  457.  
  458. if p == "Size" then
  459.  
  460. gotResized()
  461.  
  462. end
  463.  
  464. end)
  465.  
  466. gotResized()
  467.  
  468. local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  469.  
  470. local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  471.  
  472. local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  473.  
  474. local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  475.  
  476. local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  477.  
  478. local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  479.  
  480.  
  481. function setwings(tab,time)
  482.  
  483. time = time or 10
  484.  
  485. for i=1,4 do
  486.  
  487. rwing[i].DesiredAngle = tab[i]
  488.  
  489. lwing[i].DesiredAngle = tab[i]
  490.  
  491. rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  492.  
  493. lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  494.  
  495. local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  496.  
  497. local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  498.  
  499. end
  500.  
  501. for i,v in pairs(rf1) do
  502.  
  503. v.DesiredAngle = tab[9]
  504.  
  505. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  506.  
  507. end
  508.  
  509. for i,v in pairs(lf1) do
  510.  
  511. v.DesiredAngle = tab[9]
  512.  
  513. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  514.  
  515. end
  516.  
  517. for i,v in pairs(rf2) do
  518.  
  519. v.DesiredAngle = tab[10]
  520.  
  521. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  522.  
  523. end
  524.  
  525. for i,v in pairs(lf2) do
  526.  
  527. v.DesiredAngle = tab[10]
  528.  
  529. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  530.  
  531. end
  532.  
  533. for i,v in pairs(rf3) do
  534.  
  535. v.DesiredAngle = tab[11]
  536.  
  537. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  538.  
  539. end
  540.  
  541. for i,v in pairs(lf3) do
  542.  
  543. v.DesiredAngle = tab[11]
  544.  
  545. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  546.  
  547. end
  548.  
  549. end
  550.  
  551. setwings(outhigh,1)
  552.  
  553. flying = false
  554.  
  555. moving = false
  556.  
  557. for i,v in pairs(tor:GetChildren()) do
  558.  
  559. if v.ClassName:lower():match("body") then
  560.  
  561. v:Destroy()
  562.  
  563. end
  564.  
  565. end
  566.  
  567. local ctor = tor:Clone()
  568.  
  569. ctor:ClearAllChildren()
  570.  
  571. ctor.Name = "cTorso"
  572.  
  573. ctor.Transparency = 1
  574.  
  575. ctor.CanCollide = false
  576.  
  577. ctor.FormFactor = "Custom"
  578.  
  579. ctor.Size = Vector3.new(.2,.2,.2)
  580.  
  581. ctor.Parent = mod
  582.  
  583. weld(tor,ctor)
  584.  
  585. local bg = Instance.new("BodyGyro",ctor)
  586.  
  587. bg.maxTorque = Vector3.new()
  588.  
  589. bg.P = 15000
  590.  
  591. bg.D = 1000
  592.  
  593. local bv = Instance.new("BodyVelocity",ctor)
  594.  
  595. bv.maxForce = Vector3.new()
  596.  
  597. bv.P = 15000
  598.  
  599. vel = Vector3.new()
  600.  
  601. cf = CFrame.new()
  602.  
  603. flspd =0
  604.  
  605.  
  606. keysdown = {}
  607.  
  608. keypressed = {}
  609.  
  610. ktime = {}
  611.  
  612. descendtimer = 0
  613.  
  614. jumptime = tick()
  615.  
  616. hum.Jumping:connect(function()
  617.  
  618. jumptime = tick()
  619.  
  620. end)
  621.  
  622. cam = workspace.CurrentCamera
  623.  
  624. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  625.  
  626. keysdown[key] = true
  627.  
  628. keypressed[key] = true
  629.  
  630. if key == "q" then
  631.  
  632. descendtimer = tick()
  633.  
  634. elseif key == " " and not hum.Jump then
  635.  
  636. jumptime = tick()
  637.  
  638. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  639.  
  640. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  641.  
  642. end
  643.  
  644. ktime[key] = tick()
  645.  
  646. end))
  647.  
  648. ku = plr:GetMouse().KeyUp:connect(function(key)
  649.  
  650. keysdown[key] = false
  651.  
  652. if key == " " then
  653.  
  654. descendtimer = tick()
  655.  
  656. end
  657.  
  658. end)
  659.  
  660. function mid(a,b,c)
  661.  
  662. return math.max(a,math.min(b,c or -a))
  663.  
  664. end
  665.  
  666. function bn(a)
  667.  
  668. return a and 1 or 0
  669.  
  670. end
  671.  
  672. function gm(tar)
  673.  
  674. local m = 0
  675.  
  676. for i,v in pairs(tar:GetChildren()) do
  677.  
  678. if v:IsA("BasePart") then
  679.  
  680. m = m + v:GetMass()
  681.  
  682. end
  683.  
  684. m = m + gm(v)
  685.  
  686. end
  687.  
  688. return m
  689.  
  690. end
  691.  
  692. reqrotx = 0
  693.  
  694. local grav = 196.2
  695.  
  696. local con
  697.  
  698. con = game:GetService("RunService").Stepped:connect(oc(function()
  699.  
  700. --[[if not mod:IsDescendantOf(workspace) then
  701.  
  702. pcall(function() kd:disconnect() end)
  703.  
  704. pcall(function() ku:disconnect() end)
  705.  
  706. bg:Destroy()
  707.  
  708. bv:Destroy()
  709.  
  710. con:disconnect()
  711.  
  712. script:Destroy()
  713.  
  714. return
  715.  
  716. end]]
  717.  
  718. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  719.  
  720. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  721.  
  722. if flying then
  723.  
  724. local lfldir = fldir
  725.  
  726. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  727.  
  728. local lmoving = moving
  729.  
  730. moving = fldir.magnitude > .1
  731.  
  732. if lmoving and not moving then
  733.  
  734. idledir = lfldir*Vector3.new(1,0,1)
  735.  
  736. descendtimer = tick()
  737.  
  738. end
  739.  
  740. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  741.  
  742. if moving and keysdown["0"] and lmoving then
  743.  
  744. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  745.  
  746. end
  747.  
  748. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  749.  
  750. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  751.  
  752. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  753.  
  754. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  755.  
  756. hum.PlatformStand = true
  757.  
  758. bg.maxTorque = Vector3.new(1,1,1)*9e5
  759.  
  760. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  761.  
  762. bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
  763.  
  764. reqrotx = reqrotx - reqrotx/10
  765.  
  766. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  767.  
  768. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  769.  
  770. local ani = tickwave(1.5-anioff,1)
  771.  
  772. bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
  773.  
  774. vel = moving and cf.lookVector*flspd or Vector3.new()
  775.  
  776. flspd = math.min(200,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(400,flspd-fldir.Y*grav/300)) or 60,.4))
  777.  
  778. setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
  779.  
  780. for i=1,4 do
  781.  
  782. --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
  783.  
  784. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
  785.  
  786. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
  787.  
  788. end
  789.  
  790. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  791.  
  792. if hit and down.Y < -.85 and tick()-flystart > 1 then
  793.  
  794. flying = false
  795.  
  796. hum.PlatformStand = false
  797.  
  798. tor.Velocity = Vector3.new()
  799.  
  800. end
  801.  
  802. else
  803.  
  804. bg.maxTorque = Vector3.new()
  805.  
  806. bv.maxForce = Vector3.new()
  807.  
  808. local ani = tickwave(walking and .8 or 4.5,1)
  809.  
  810. setwings(idle,10)
  811.  
  812. local x,y,z = fspd/160,uspd/700,sspd/900
  813.  
  814. for i=1,4 do
  815.  
  816. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
  817.  
  818. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
  819.  
  820. end
  821.  
  822. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  823.  
  824. vel = Vector3.new(0,50,0)
  825.  
  826. bv.velocity = vel
  827.  
  828. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  829.  
  830. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  831.  
  832. tor.CFrame = cf
  833.  
  834. bg.cframe = cf
  835.  
  836. flystart = tick()
  837.  
  838. flying = true
  839.  
  840. end
  841.  
  842. end
  843.  
  844. keypressed = {}
  845.  
  846. end))
  847.  
  848.  
  849.  
  850. end fly()
  851.  
  852. --Edit By Rosemarijohn2
  853.  
  854. --War Hammer Gifted by Rosemarijohn2, Local Script!
  855.  
  856. Ancor = game:GetService("Players")
  857.  
  858. me = Ancor.LocalPlayer
  859. char = me.Character
  860. Modelname = "Warhammah"
  861. Toolname = "Warhammar"
  862. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  863. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  864. selected = false
  865. effectOn = false
  866. Hurt = false
  867. Leghurt = false
  868. Deb = true
  869. LegDeb = true
  870. Able = true
  871. Resting = false
  872. RestingAnim = false
  873. AbleG = true
  874. Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
  875. Prop.AS = Prop.AS/300
  876. Cam = workspace.CurrentCamera
  877.  
  878. ToolIcon = "http://www.roblox.com/asset/?id=49192762"
  879. MouseIc = "http://www.roblox.com/asset/?id=49192792"
  880. MouseDo = "http://www.roblox.com/asset/?id=49192819"
  881.  
  882. Add = {
  883. Sphere = function(P)
  884. local m = Instance.new("SpecialMesh",P)
  885. m.MeshType = "Sphere"
  886. return m
  887. end,
  888. BF = function(P)
  889. local bf = Instance.new("BodyForce",P)
  890. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  891. return bf
  892. end,
  893. BP = function(P)
  894. local bp = Instance.new("BodyPosition",P)
  895. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  896. bp.P = 14000
  897. return bp
  898. end,
  899. BG = function(P)
  900. local bg = Instance.new("BodyGyro",P)
  901. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  902. bg.P = 14000
  903. return bg
  904. end,
  905. Mesh = function(P, ID, x, y, z)
  906. local m = Instance.new("SpecialMesh")
  907. m.MeshId = ID
  908. m.Scale = Vector3.new(x, y, z)
  909. m.Parent = P
  910. return m
  911. end,
  912. Sound = function(P, ID, vol, pitch)
  913. local s = Instance.new("Sound")
  914. s.SoundId = ID
  915. s.Volume = vol
  916. s.Pitch = pitch
  917. s.Parent = P
  918. return s
  919. end
  920. }
  921.  
  922. function find(tab, arg)
  923. local ah = nil
  924. for i,v in pairs(tab) do
  925. if v == arg then
  926. ah = v
  927. end
  928. end
  929. return ah
  930. end
  931.  
  932. function getAllParts(from)
  933. local t = {}
  934. function getParts(where)
  935. for i, v in pairs(where:children()) do
  936. if v:IsA("BasePart") then
  937. if v.Parent ~= char and v.Parent.Parent ~= char then
  938. table.insert(t, v)
  939. end
  940. end
  941. getParts(v)
  942. end
  943. end
  944. getParts(workspace)
  945. return t
  946. end
  947.  
  948. function RayCast(pos1, pos2, maxDist, forward)
  949. local list = getAllParts(workspace)
  950. local pos0 = pos1
  951. for dist = 1, maxDist, forward do
  952. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  953. for _, v in pairs(list) do
  954. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  955. local s = v.Size
  956. if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
  957. return pos0, v
  958. end
  959. end
  960. end
  961. return pos0, nil
  962. end
  963.  
  964. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  965. local p = Instance.new("Part")
  966. p.formFactor = "Custom"
  967. p.Anchored = Anchor
  968. p.CanCollide = Collide
  969. p.Transparency = Tran
  970. p.Reflectance = Ref
  971. p.BrickColor = BrickColor.new(Color)
  972. for _, Surf in pairs(Surfaces) do
  973. p[Surf] = "Smooth"
  974. end
  975. p.Size = Vector3.new(X, Y, Z)
  976. if Break then
  977. p:BreakJoints()
  978. else p:MakeJoints() end
  979. p.Parent = Parent
  980. p.Locked = true
  981. return p
  982. end
  983.  
  984. function Weld(p0, p1, x, y, z, a, b, c)
  985. local w = Instance.new("Weld")
  986. w.Parent = p0
  987. w.Part0 = p0
  988. w.Part1 = p1
  989. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  990. return w
  991. end
  992.  
  993. function ComputePos(pos1, pos2)
  994. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  995. return CFrame.new(pos1, pos3)
  996. end
  997.  
  998. function getHumanoid(c)
  999. local h = nil
  1000. for i,v in pairs(c:children()) do
  1001. if v:IsA("Humanoid") and c ~= char then
  1002. if v.Health > 0 then
  1003. h = v
  1004. end
  1005. end
  1006. end
  1007. return h
  1008. end
  1009.  
  1010. for i,v in pairs(char:children()) do
  1011. if v.Name == Modelname then
  1012. v:remove()
  1013. end
  1014. end
  1015.  
  1016. pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
  1017.  
  1018. Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
  1019. Sc.Name = "RaigMeter"
  1020.  
  1021. Fr = Instance.new("Frame",Sc)
  1022. Fr.Size = UDim2.new(0, 250, 0, 28)
  1023. Fr.Position = UDim2.new(0.5, -125, 0, 5)
  1024. Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
  1025.  
  1026. Met = Instance.new("Frame", Fr)
  1027. Met.Size = UDim2.new(1, -10, 1, -6)
  1028. Met.Position = UDim2.new(0, 5, 0, 3)
  1029. Met.BackgroundColor3 = Color3.new(0, 0, 0)
  1030. Met.BorderSizePixel = 0
  1031.  
  1032. Meter = Instance.new("ImageLabel", Met)
  1033. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  1034. Meter.Position = UDim2.new(0, 0, 0, 1)
  1035. Meter.Image = "http://www.roblox.com/asset/?id=48965808"
  1036. Meter.BorderSizePixel = 0
  1037. Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
  1038.  
  1039. Tx = Instance.new("TextLabel", Met)
  1040. Tx.Size = UDim2.new(0, 0, 1, 0)
  1041. Tx.Position = UDim2.new(0, 5, 0, 0)
  1042. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  1043. Tx.Font = "ArialBold"
  1044. Tx.FontSize = "Size18"
  1045. Tx.BackgroundTransparency = 1
  1046. Tx.TextColor3 = Color3.new(1, 0, 0)
  1047. Tx.TextXAlignment = "Left"
  1048.  
  1049. laast = Prop.Rage
  1050. coroutine.resume(coroutine.create(function()
  1051. while true do
  1052. wait()
  1053. if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
  1054. if laast ~= Prop.Rage then
  1055. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  1056. laast = Prop.Rage
  1057. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  1058. end
  1059. end
  1060. end))
  1061.  
  1062. torso = char.Torso
  1063. neck = torso.Neck
  1064. hum = char.Humanoid
  1065. Rarm = char["Right Arm"]
  1066. Larm = char["Left Arm"]
  1067. Rleg = char["Right Leg"]
  1068. Lleg = char["Left Leg"]
  1069.  
  1070. hc = Instance.new("Humanoid")
  1071. hc.Health = 0
  1072. hc.MaxHealth = 0
  1073.  
  1074. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  1075. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  1076. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  1077. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  1078. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  1079. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  1080. equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
  1081.  
  1082. function PlaySound(sound, pitch)
  1083. local s = sound:clone()
  1084. if pitch ~= nil then
  1085. if tonumber(pitch) then
  1086. s.Pitch = tonumber(pitch)
  1087. end
  1088. end
  1089. s.Parent = torso
  1090. s.PlayOnRemove = true
  1091. coroutine.resume(coroutine.create(function()
  1092. wait()
  1093. s:remove()
  1094. end))
  1095. end
  1096.  
  1097. Mo = Instance.new("Model")
  1098. Mo.Name = Modelname
  1099.  
  1100. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1101. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1102. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1103. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1104.  
  1105. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  1106. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  1107. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  1108. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  1109.  
  1110. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  1111. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  1112. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  1113. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  1114.  
  1115. HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  1116. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  1117. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  1118.  
  1119. TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
  1120.  
  1121. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  1122.  
  1123. handle = Part(Mo, false, false, 0, 0, "White", 0.4, 5, 0.4, true)
  1124. handle.Name = "Handle"
  1125. Instance.new("SpecialMesh",handle)
  1126.  
  1127. maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
  1128. Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
  1129.  
  1130. DMGParts = {}
  1131.  
  1132. for i = 0, 135, 45 do
  1133. local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
  1134. Instance.new("BlockMesh",tip)
  1135. Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
  1136. table.insert(DMGParts, tip)
  1137. for a = -0.9, 0.9, 1.8 do
  1138. for x = 0, math.pi, math.pi do
  1139. local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
  1140. local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
  1141. w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  1142. w.C1 = CFrame.new(0, -1, 0)
  1143. Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
  1144. local trim = Part(Mo, false, false, 0, 0, "White", 0.67, 0.1, 0.5, true)
  1145. local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
  1146. w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  1147. w2.C1 = CFrame.new(0, -0.58, 0)
  1148. end
  1149. end
  1150. end
  1151.  
  1152. spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
  1153. Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
  1154. Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
  1155.  
  1156. table.insert(DMGParts, spiketip)
  1157.  
  1158. local handletip1 = Part(Mo, false, false, 0, 0.2, "White", 0.5, 0.5, 0.5, true)
  1159. local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
  1160. w1.C0 = CFrame.new(0, -2.6, 0)
  1161. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
  1162.  
  1163. local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  1164. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  1165. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
  1166.  
  1167.  
  1168. Mo.Parent = char
  1169. TH.Part1 = handle
  1170.  
  1171. function showdmg(dmg, p, pos)
  1172. local mo = Instance.new("Model")
  1173. mo.Name = dmg
  1174. local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
  1175. pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
  1176. pa.Name = "Head"
  1177. local hah = hc:clone()
  1178. hah.Parent = mo
  1179. local bp = Add.BP(pa)
  1180. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1181. bp.position = p.Position + Vector3.new(0, 3+pos, 0)
  1182. Add.BG(pa)
  1183. coroutine.resume(coroutine.create(function()
  1184. wait()
  1185. mo.Parent = workspace
  1186. wait(1.4)
  1187. mo:remove()
  1188. end))
  1189. end
  1190.  
  1191.  
  1192. function damage(hum, p, num, dm1, dm2)
  1193. local dmg = math.random(dm1, dm2)
  1194. hum.Health = hum.Health - dmg
  1195. showdmg(dmg, p, num)
  1196. return dmg
  1197. end
  1198.  
  1199. function brickdamage(hit)
  1200. local h = getHumanoid(hit.Parent)
  1201. if h ~= nil and Hurt and Deb then
  1202. Deb = false
  1203. local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
  1204. PlaySound(hitsound)
  1205. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  1206. wait(0.3)
  1207. Deb = true
  1208. end
  1209. end
  1210.  
  1211. function legdamage(hit)
  1212. local h = getHumanoid(hit.Parent)
  1213. if h ~= nil and Leghurt and LegDeb then
  1214. LegDeb = false
  1215. local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
  1216. PlaySound(hitsound)
  1217. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  1218. coroutine.resume(coroutine.create(function()
  1219. local haha = math.random(1,3)
  1220. if haha == 1 then
  1221. h.PlatformStand = true
  1222. wait()
  1223. local ps = getAllParts(h.Parent)
  1224. for i, v in pairs(ps) do
  1225. if v.Anchored == false then
  1226. v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
  1227. v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  1228. end
  1229. end
  1230. wait(0.8)
  1231. h.PlatformStand = false
  1232. end
  1233. end))
  1234. wait(0.2)
  1235. LegDeb = true
  1236. end
  1237. end
  1238.  
  1239. for i, v in pairs({Rleg, Lleg}) do
  1240. v.Touched:connect(legdamage)
  1241. end
  1242.  
  1243. for i,v in pairs(DMGParts) do
  1244. v.Touched:connect(brickdamage)
  1245. end
  1246.  
  1247. if script.Parent.className ~= "HopperBin" then
  1248. h = Instance.new("HopperBin",me.Backpack)
  1249. h.Name = Toolname
  1250. h.TextureId = ToolIcon
  1251. script.Parent = h
  1252. end
  1253.  
  1254. bin = script.Parent
  1255.  
  1256. function StartEffect(part)
  1257. effectOn = true
  1258. local lastPoint = part.Position
  1259. coroutine.resume(coroutine.create(function()
  1260. while effectOn do
  1261. wait()
  1262. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1263. local mag = (lastPoint - part.Position).magnitude
  1264. local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
  1265. local m = Instance.new("SpecialMesh",p)
  1266. p.CFrame = point * CFrame.new(0, mag/2, 0)
  1267. m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
  1268. lastPoint = part.Position
  1269. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  1270. end
  1271. end))
  1272. end
  1273.  
  1274. function EndEffect()
  1275. effectOn = false
  1276. end
  1277.  
  1278. function detach(bool)
  1279. LLW.C0 = CFrame.new(0, 0, 0)
  1280. RLW.C0 = CFrame.new(0, 0, 0)
  1281. LAW.C0 = CFrame.new(0,0,0)
  1282. RAW.C0 = CFrame.new(0, 0, 0)
  1283. if bool then
  1284. LLW.Part1 = nil
  1285. RLW.Part1 = nil
  1286. RAW.Part1 = nil
  1287. LAW.Part1 = nil
  1288. end
  1289. end
  1290.  
  1291. function attach()
  1292. RAW.Part1 = Rarm
  1293. LAW.Part1 = Larm
  1294. RLW.Part1 = Rleg
  1295. LLW.Part1 = Lleg
  1296. end
  1297.  
  1298. function normal()
  1299. neck.C0 = necko
  1300. RAW.C0 = RAWStand
  1301. LAW.C0 = LAWStand
  1302. RLW.C0 = RLWStand
  1303. LLW.C0 = LLWStand
  1304. RAW.C1 = CFrame.new(0, 0.5, 0)
  1305. LAW.C1 = CFrame.new(0, 0.5, 0)
  1306. RLW.C1 = CFrame.new(0, 0.8, 0)
  1307. LLW.C1 = CFrame.new(0, 0.8, 0)
  1308. HW.C0 = HWStand
  1309. end
  1310.  
  1311. function idleanim()
  1312. attach()
  1313. for i = 0, 10, 10/22 do
  1314. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  1315. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  1316. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  1317. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  1318. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  1319. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  1320. wait()
  1321. end
  1322. wait()
  1323. for i = 10, 0, -10/29 do
  1324. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  1325. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  1326. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  1327. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  1328. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  1329. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  1330. wait()
  1331. end
  1332. normal()
  1333. end
  1334.  
  1335. function runanim()
  1336. RLW.Part1 = nil
  1337. LLW.Part1 = nil
  1338. end
  1339.  
  1340. coroutine.resume(coroutine.create(function()
  1341. while true do
  1342. wait()
  1343. if selected and Able == true and RestingAnim == false then
  1344. if torso.Velocity.magnitude < 2 then
  1345. idleanim()
  1346. wait()
  1347. else
  1348. runanim()
  1349. wait()
  1350. end
  1351. end
  1352. end
  1353. end))
  1354.  
  1355. function selectanim()
  1356. if RestingAnim == false and Able == true then
  1357. local ah = CFrame.Angles(0, 0, math.rad(90))
  1358. RAW.Part1 = Rarm
  1359. for i = 0, 270, 270/5 do
  1360. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1361. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  1362. wait()
  1363. end
  1364. HW.C0 = ah
  1365. HW.Part1 = handle
  1366. TH.Part1 = nil
  1367. PlaySound(equip)
  1368. for i = 270, 70, -200/13 do
  1369. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1370. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  1371. wait()
  1372. end
  1373. attach()
  1374. for i = 70, 120, 50/8 do
  1375. local asd = i-70
  1376. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  1377. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  1378. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  1379. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  1380. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  1381. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  1382. wait()
  1383. end
  1384. if RAWStand == nil then
  1385. RAWStand = RAW.C0
  1386. LAWStand = LAW.C0
  1387. RLWStand = RLW.C0
  1388. LLWStand = LLW.C0
  1389. HWStand = HW.C0
  1390. end
  1391. normal()
  1392. end
  1393. end
  1394.  
  1395. function deselanim()
  1396. if RestingAnim == false and Able == true then
  1397. local ah = CFrame.Angles(0, 0, math.rad(90))
  1398. for i = 120, 70, -50/8 do
  1399. local asd = i-70
  1400. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  1401. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  1402. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  1403. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  1404. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  1405. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  1406. wait()
  1407. end
  1408. LLW.Part1 = nil
  1409. RLW.Part1 = nil
  1410. LAW.Part1 = nil
  1411. for i = 70, 270, 200/13 do
  1412. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1413. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  1414. wait()
  1415. end
  1416. HW.C0 = ah
  1417. HW.Part1 = nil
  1418. TH.Part1 = handle
  1419. for i = 270, 0, -270/6 do
  1420. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1421. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  1422. wait()
  1423. end
  1424. neck.C0 = necko
  1425. detach(true)
  1426. end
  1427. end
  1428.  
  1429. function smash(mouse)
  1430. attach()
  1431. local mouseHit = mouse
  1432. local Orig = torso.CFrame
  1433. local bg = Add.BG(torso)
  1434. local bp = Add.BP(torso)
  1435. bp.position = Orig.p
  1436. local CF = ComputePos(Orig.p, mouseHit)
  1437. local CF2 = CF
  1438. bg.cframe = CF2
  1439. PlaySound(slash)
  1440. for i = 0, 1, Prop.AS*1.1 do
  1441. RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
  1442. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
  1443. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
  1444. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
  1445. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
  1446. neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
  1447. wait()
  1448. end
  1449. bp.position = CF * CFrame.new(0, 0, -1.1).p
  1450. StartEffect(maintip)
  1451. Hurt = true
  1452. for i = 0, 1, Prop.AS*1.5 do
  1453. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0)
  1454. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0)
  1455. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
  1456. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
  1457. HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
  1458. neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
  1459. wait()
  1460. end
  1461. Hurt = false
  1462. EndEffect()
  1463. PlaySound(smashsound)
  1464. bp.position = CF * CFrame.new(0, 0, -1.9).p
  1465. for i = 0, 1, Prop.AS do
  1466. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0)
  1467. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0)
  1468. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
  1469. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
  1470. HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
  1471. neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
  1472. wait()
  1473. end
  1474. normal()
  1475. bg:remove()
  1476. bp:remove()
  1477. end
  1478.  
  1479. function swing(mouse)
  1480. attach()
  1481. local mouseHit = mouse
  1482. local Orig = torso.CFrame
  1483. local bg = Add.BG(torso)
  1484. local bp = Add.BP(torso)
  1485. bp.position = Orig.p
  1486. local CF = ComputePos(Orig.p, mouseHit)
  1487. local CF2 = CF
  1488. bg.cframe = CF2
  1489. PlaySound(slash)
  1490. for i = 0, 1, Prop.AS*1.5 do
  1491. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
  1492. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
  1493. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
  1494. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
  1495. HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
  1496. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
  1497. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
  1498. wait()
  1499. end
  1500. Hurt = true
  1501. StartEffect(maintip)
  1502. for i = 0, 1, Prop.AS*1.3 do
  1503. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
  1504. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
  1505. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
  1506. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
  1507. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
  1508. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
  1509. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
  1510. wait()
  1511. end
  1512. EndEffect()
  1513. Hurt = false
  1514. for i = 0, 1, Prop.AS*0.8 do
  1515. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0)
  1516. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0)
  1517. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
  1518. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  1519. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i)
  1520. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
  1521. bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
  1522. wait()
  1523. end
  1524. normal()
  1525. bg:remove()
  1526. bp:remove()
  1527. end
  1528.  
  1529. function stab(mouse)
  1530. attach()
  1531. local mouseHit = mouse
  1532. local Orig = torso.CFrame
  1533. local bg = Add.BG(torso)
  1534. local bp = Add.BP(torso)
  1535. bp.position = Orig.p
  1536. local CF = ComputePos(Orig.p, mouseHit)
  1537. local CF2 = CF
  1538. bg.cframe = CF2
  1539. PlaySound(slash)
  1540. for i = 0, 1, Prop.AS do
  1541. RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0)
  1542. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
  1543. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
  1544. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
  1545. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
  1546. neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
  1547. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
  1548. wait()
  1549. end
  1550. StartEffect(maintip)
  1551. Hurt = true
  1552. bp.position = CF * CFrame.new(0, 0, -0.6).p
  1553. for i = 0, 1, Prop.AS*1.5 do
  1554. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0)
  1555. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0)
  1556. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
  1557. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
  1558. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
  1559. neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
  1560. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
  1561. wait()
  1562. end
  1563. Hurt = false
  1564. EndEffect()
  1565. bp.position = CF.p
  1566. for i = 0, 1, Prop.AS*1.1 do
  1567. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0)
  1568. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0)
  1569. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
  1570. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
  1571. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
  1572. neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
  1573. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
  1574. wait()
  1575. end
  1576. normal()
  1577. bg:remove()
  1578. bp:remove()
  1579. end
  1580.  
  1581. function epicsmashfunc(hit)
  1582. local ch = hit.Parent
  1583. local h = getHumanoid(ch)
  1584. local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
  1585. return h, t, head
  1586. end
  1587.  
  1588. function epicsmash(mouse)
  1589. if Prop.Rage >= 50 then
  1590. attach()
  1591. local mouseHit = mouse
  1592. local Orig = torso.CFrame
  1593. local bg = Add.BG(torso)
  1594. local bp = Add.BP(torso)
  1595. bp.position = Orig.p
  1596. local CF = ComputePos(Orig.p, mouseHit)
  1597. bg.cframe = CF
  1598. local hu, to, head = nil, nil, nil
  1599. local Epic = true
  1600. local conn = Lleg.Touched:connect(function(hit)
  1601. if Epic then
  1602. hu, to, head = epicsmashfunc(hit)
  1603. if hu and to and head then Epic = false end
  1604. end
  1605. end)
  1606. PlaySound(slash)
  1607. for i = 0, 1, 0.12 do
  1608. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
  1609. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
  1610. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
  1611. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
  1612. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
  1613. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
  1614. bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
  1615. wait()
  1616. end
  1617. conn:disconnect()
  1618. if hu and to and head then
  1619. Prop.Rage = Prop.Rage - 50
  1620. hu.PlatformStand = true
  1621. local bg2 = Add.BG(to)
  1622. bg2.P = 6000
  1623. bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
  1624. local bp2 = Add.BP(to)
  1625. bp2.position = CF * CFrame.new(-1, -4, -4).p
  1626. bp2.P = 5000
  1627. wait(0.1)
  1628. for i = 0, 1, 0.045 do
  1629. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
  1630. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i)
  1631. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  1632. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  1633. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  1634. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
  1635. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
  1636. wait()
  1637. end
  1638. PlaySound(slash)
  1639. bp2:remove()
  1640. bg2:remove()
  1641. wait(0.2)
  1642. StartEffect(maintip)
  1643. for i = 0, 1, 0.1 do
  1644. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
  1645. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0)
  1646. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1647. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1648. HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
  1649. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
  1650. bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
  1651. wait()
  1652. end
  1653. coroutine.resume(coroutine.create(function()
  1654. local frr = Cam.CoordinateFrame
  1655. for i = 1, math.random(3,6) do
  1656. wait()
  1657. Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
  1658. end
  1659. end))
  1660. PlaySound(smashsound)
  1661. EndEffect()
  1662. local pos = head.Position
  1663. if (pos - maintip.Position).magnitude < 2 then
  1664. damage(hu, head, 0.3, hu.Health, hu.Health)
  1665. head:remove()
  1666. PlaySound(hitsound)
  1667. for i = 1, math.random(7, 17) do
  1668. local hmm = math.random(1,6)
  1669. if hmm < 6 then
  1670. local cols = {"White", "Really red"}
  1671. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10)
  1672. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  1673. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  1674. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  1675. else
  1676. local cols = {"Institutional white", "White"}
  1677. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10)
  1678. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  1679. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  1680. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  1681. end
  1682. end
  1683. end
  1684. for i = 0, 1, 0.06 do
  1685. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i))
  1686. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0)
  1687. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1688. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1689. HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
  1690. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
  1691. bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
  1692. wait()
  1693. end
  1694. else
  1695. for i = 0, 1, 0.08 do
  1696. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0)
  1697. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i)
  1698. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  1699. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  1700. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  1701. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
  1702. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
  1703. wait()
  1704. end
  1705. bg:remove()
  1706. bp:remove()
  1707. normal()
  1708. end
  1709. normal()
  1710. bg:remove()
  1711. bp:remove()
  1712. end
  1713. end
  1714.  
  1715.  
  1716. function shockwave(mouse)
  1717. local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
  1718. if Prop.Rage >= 80 and t then
  1719. Prop.Rage = Prop.Rage - 80
  1720. attach()
  1721. local mouseHit = mouse
  1722. local Orig = torso.CFrame
  1723. local bg = Add.BG(torso)
  1724. local bp = Add.BP(torso)
  1725. bp.position = Orig.p
  1726. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1727. bp.P = 5000
  1728. local CF = ComputePos(Orig.p, mouseHit)
  1729. bg.cframe = CF
  1730. PlaySound(charge)
  1731. for i = 0, 1, 0.07 do
  1732. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  1733. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  1734. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
  1735. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  1736. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  1737. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  1738. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1739. bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
  1740. wait()
  1741. end
  1742. for i = 0, 1, 0.04 do
  1743. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  1744. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i)
  1745. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i)
  1746. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  1747. HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
  1748. neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
  1749. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1750. bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
  1751. wait()
  1752. end
  1753. bp.P = 12001
  1754. wait(0.1)
  1755. StartEffect(maintip)
  1756. PlaySound(slash)
  1757. for i = 0, 1, 0.1 do
  1758. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i)
  1759. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
  1760. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i)
  1761. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  1762. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
  1763. neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
  1764. bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
  1765. bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
  1766. wait()
  1767. end
  1768. coroutine.resume(coroutine.create(function()
  1769. local frr = Cam.CoordinateFrame
  1770. for i = 1, math.random(10,16) do
  1771. wait()
  1772. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  1773. end
  1774. end))
  1775. PlaySound(smashsound)
  1776. local pos = CF * CFrame.new(-2, -3, -3).p
  1777. EndEffect()
  1778. local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  1779. p.CFrame = CFrame.new(pos)
  1780. local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  1781. p2.CFrame = CFrame.new(pos)
  1782. local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  1783. p3.CFrame = CFrame.new(pos)
  1784. local m3 = Instance.new("SpecialMesh",p3)
  1785. m3.MeshType = "Sphere"
  1786. PlaySound(boom)
  1787. local m2 = Instance.new("CylinderMesh",p2)
  1788. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
  1789. local tab = {}
  1790. coroutine.resume(coroutine.create(function()
  1791. for x = 0, 1.04, 0.04 do
  1792. wait()
  1793. local thing = 33*x
  1794. m.Scale = Vector3.new(21*x, 5*x, 21*x)
  1795. m2.Scale = Vector3.new(thing, 1, thing)
  1796. m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
  1797. p.Transparency = x
  1798. p2.Transparency = x
  1799. p3.Transparency = x
  1800. for i, v in pairs(workspace:children()) do
  1801. local h = getHumanoid(v)
  1802. local to = v:findFirstChild("Torso")
  1803. if h ~= nil and to ~= nil and find(tab, v) == nil then
  1804. if (to.Position - pos).magnitude < (thing/2) then
  1805. damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
  1806. to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
  1807. to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  1808. h.PlatformStand = true
  1809. table.insert(tab, v)
  1810. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  1811. end
  1812. end
  1813. end
  1814. end
  1815. p:remove()
  1816. p2:remove()
  1817. p3:remove()
  1818. end))
  1819. wait(0.8)
  1820. for i = 0, 1, Prop.AS*0.8 do
  1821. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i)
  1822. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0)
  1823. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i)
  1824. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  1825. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
  1826. neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
  1827. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1828. bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
  1829. wait()
  1830. end
  1831. normal()
  1832. bg:remove()
  1833. bp:remove()
  1834. end
  1835. end
  1836.  
  1837. function flipsmash(mouse)
  1838. local Orig = torso.CFrame
  1839. local mouseHit = mouse
  1840. local CF = ComputePos(Orig.p, mouseHit)
  1841. local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
  1842. local ahp = (CF * CFrame.new(0, 0, -14.5))
  1843. local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
  1844. if t and t2 and Prop.Rage >= 90 then
  1845. Prop.Rage = Prop.Rage - 90
  1846. attach()
  1847. local bg = Add.BG(torso)
  1848. local bp = Add.BP(torso)
  1849. bp.position = Orig.p
  1850. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1851. bg.cframe = CF
  1852. local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
  1853. for i = 0, 1, 0.08 do
  1854. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  1855. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  1856. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
  1857. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
  1858. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  1859. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  1860. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1861. bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
  1862. wait()
  1863. end
  1864. wait(0.15)
  1865. hum.PlatformStand = true
  1866. for i = 0, 1, 0.13 do
  1867. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
  1868. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
  1869. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  1870. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
  1871. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
  1872. neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
  1873. bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
  1874. bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1875. wait()
  1876. end
  1877. PlaySound(slash)
  1878. for i = 0, 1, 0.13 do
  1879. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  1880. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i)
  1881. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
  1882. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
  1883. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
  1884. neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
  1885. bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
  1886. bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1887. wait()
  1888. end
  1889. StartEffect(maintip)
  1890. PlaySound(slash)
  1891. for i = 0, 1, 0.06 do
  1892. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0)
  1893. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
  1894. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
  1895. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
  1896. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
  1897. neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
  1898. bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
  1899. bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1900. wait()
  1901. end
  1902. coroutine.resume(coroutine.create(function()
  1903. local frr = Cam.CoordinateFrame
  1904. for i = 1, math.random(13,20) do
  1905. wait()
  1906. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  1907. end
  1908. end))
  1909. PlaySound(smashsound)
  1910. PlaySound(boomboom)
  1911. EndEffect()
  1912. local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
  1913. local siz = math.random(65,115)/10
  1914. local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
  1915. partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
  1916. local decc = Instance.new("Decal",partie)
  1917. decc.Shiny = 0
  1918. decc.Specular = 0
  1919. decc.Texture = "http://www.roblox.com/asset/?id=49173398"
  1920. decc.Face = "Top"
  1921. local count = 0
  1922. for i, v in pairs(workspace:children()) do
  1923. local h = getHumanoid(v)
  1924. local to = v:findFirstChild("Torso")
  1925. if h ~= nil and to ~= nil then
  1926. if (to.Position - poo).magnitude < 15 then
  1927. count = count + 1
  1928. local Maxhp = h.MaxHealth
  1929. if Maxhp > 5000 then Maxhp = 5000 end
  1930. damage(h, to, 0.5, 0, Maxhp+5)
  1931. to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
  1932. to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
  1933. to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1934. h.PlatformStand = true
  1935. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  1936. if count >= 2 then break end
  1937. end
  1938. end
  1939. end
  1940. coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
  1941. wait(0.6)
  1942. for i = 0, 1, 0.06 do
  1943. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0)
  1944. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0)
  1945. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0)
  1946. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  1947. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
  1948. neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
  1949. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1950. bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
  1951. wait()
  1952. end
  1953. hum.PlatformStand = false
  1954. normal()
  1955. bg:remove()
  1956. bp:remove()
  1957. end
  1958. end
  1959.  
  1960. function spin(mouse)
  1961. attach()
  1962. local mouseHit = mouse
  1963. local Orig = torso.CFrame
  1964. local CF = ComputePos(Orig.p, mouseHit)
  1965. local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
  1966. if t then
  1967. local bg = Add.BG(torso)
  1968. local bp = Add.BP(torso)
  1969. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1970. bp.position = Orig.p
  1971. bg.cframe = CF
  1972. PlaySound(slash)
  1973. for i = 0, 1, 0.11 do
  1974. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
  1975. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
  1976. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
  1977. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
  1978. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
  1979. HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
  1980. neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
  1981. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1982. wait()
  1983. end
  1984. local posg = CF * CFrame.new(0, -0.6, -4)
  1985. PlaySound(hitsound, 0.9)
  1986. for i = 0, 1, 0.13 do
  1987. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i)
  1988. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
  1989. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0)
  1990. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i)
  1991. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  1992. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
  1993. neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
  1994. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1995. bp.position = CF * CFrame.new(0, 1*i, -2*i).p
  1996. wait()
  1997. end
  1998. hum.PlatformStand = true
  1999. bg.Parent = handle
  2000. bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
  2001. bp.Parent = handle
  2002. bp.position = posg.p
  2003. StartEffect(Lleg)
  2004. Leghurt = true
  2005. PlaySound(slash)
  2006. for i = 0, 1, 0.09 do
  2007. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  2008. RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
  2009. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0)
  2010. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
  2011. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
  2012. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
  2013. neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
  2014. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
  2015. wait()
  2016. end
  2017. for i = 0, 1, 0.055 do
  2018. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
  2019. RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
  2020. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
  2021. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
  2022. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
  2023. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  2024. neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
  2025. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
  2026. wait()
  2027. end
  2028. EndEffect()
  2029. Leghurt = false
  2030. for i = 0, 1, 0.12 do
  2031. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i)
  2032. RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
  2033. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
  2034. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
  2035. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
  2036. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  2037. neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  2038. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
  2039. wait()
  2040. end
  2041. bg.Parent = torso
  2042. bp.Parent = torso
  2043. bg.cframe = CF
  2044. for i = 0, 1, 0.14 do
  2045. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  2046. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
  2047. LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
  2048. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
  2049. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
  2050. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
  2051. neck.C0 = necko * CFrame.Angles(0, 0, 0)
  2052. bp.position = CF * CFrame.new(0, 0, -2+1*i).p
  2053. bg.cframe = CF
  2054. wait()
  2055. end
  2056. hum.PlatformStand = false
  2057. normal()
  2058. bg:remove()
  2059. bp:remove()
  2060. end
  2061. end
  2062.  
  2063. function rest()
  2064. local Orig = torso.CFrame
  2065. local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
  2066. local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
  2067. if t then
  2068. attach()
  2069. local bg = Add.BG(torso)
  2070. local bp = Add.BP(torso)
  2071. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2072. bp.position = CF.p
  2073. bg.cframe = CF
  2074. local cen = CF * CFrame.new(0, -2.5, 0)
  2075. RestingAnim = true
  2076. hum.PlatformStand = true
  2077. local standup = function()
  2078. Resting = false
  2079. bp.Parent = torso
  2080. cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
  2081. for i = 1, 0, -0.12 do
  2082. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  2083. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  2084. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
  2085. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
  2086. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  2087. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  2088. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  2089. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  2090. wait()
  2091. end
  2092. for i = 1, 0, -0.17 do
  2093. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  2094. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  2095. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  2096. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  2097. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  2098. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  2099. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  2100. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  2101. wait()
  2102. end
  2103. hum.PlatformStand = false
  2104. bg:remove()
  2105. bp:remove()
  2106. normal()
  2107. Able = true
  2108. RestingAnim = false
  2109. end
  2110. local connec = hum.Changed:connect(function()
  2111. if hum.PlatformStand == false then
  2112. coroutine.resume(coroutine.create(function()
  2113. standup()
  2114. end))
  2115. standup = nil
  2116. connec:disconnect()
  2117. end
  2118. end)
  2119. local lasthp = hum.Health
  2120. local conn = hum.HealthChanged:connect(function(hp)
  2121. if lasthp - hp > 0.8 then
  2122. hum.PlatformStand = false
  2123. conn:disconnect()
  2124. end
  2125. lasthp = hp
  2126. end)
  2127. coroutine.resume(coroutine.create(function()
  2128. repeat wait() until Resting
  2129. while Resting do
  2130. wait()
  2131. if torso.Velocity.magnitude > 4 then
  2132. hum.PlatformStand = false
  2133. break
  2134. end
  2135. end
  2136. end))
  2137. for i = 0, 1, 0.1 do
  2138. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  2139. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  2140. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
  2141. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
  2142. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  2143. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  2144. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  2145. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  2146. wait()
  2147. end
  2148. for i = 0, 1, 0.07 do
  2149. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  2150. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  2151. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
  2152. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
  2153. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  2154. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  2155. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  2156. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  2157. wait()
  2158. end
  2159. Resting = true
  2160. coroutine.resume(coroutine.create(function()
  2161. wait(0.4)
  2162. bp.Parent = nil
  2163. end))
  2164. coroutine.resume(coroutine.create(function()
  2165. while Resting and selected do
  2166. wait(math.random(350,800)/1000)
  2167. hum.Health = hum.Health + math.random(1,2)
  2168. Prop.Rage = Prop.Rage + 1
  2169. end
  2170. hum.PlatformStand = false
  2171. end))
  2172. end
  2173. end
  2174.  
  2175. function select(mouse)
  2176. mouse.Icon = MouseIc
  2177. selectanim()
  2178. selected = true
  2179. mouse.Button1Down:connect(function()
  2180. if Able and RestingAnim == false and hum.Sit == false then
  2181. Able = false
  2182. swing(mouse.Hit.p)
  2183. Able = true
  2184. end
  2185. end)
  2186. mouse.Button1Down:connect(function()
  2187. mouse.Icon = MouseDo
  2188. mouse.Button1Up:wait()
  2189. mouse.Icon = MouseIc
  2190. end)
  2191. mouse.KeyDown:connect(function(key)
  2192. key = key:lower()
  2193. if Able and RestingAnim == false and hum.Sit == false then
  2194. if key == "q" then
  2195. Able = false
  2196. smash(mouse.Hit.p)
  2197. Able = true
  2198. elseif key == "e" then
  2199. Able = false
  2200. swing(mouse.Hit.p)
  2201. Able = true
  2202. elseif key == "r" then
  2203. Able = false
  2204. stab(mouse.Hit.p)
  2205. Able = true
  2206. elseif key == "f" then
  2207. Able = false
  2208. epicsmash(mouse.Hit.p)
  2209. Able = true
  2210. elseif key == "z" then
  2211. Able = false
  2212. shockwave(mouse.Hit.p)
  2213. Able = true
  2214. elseif key == "x" then
  2215. Able = false
  2216. flipsmash(mouse.Hit.p)
  2217. Able = true
  2218. elseif key == "t" then
  2219. Able = false
  2220. spin(mouse.Hit.p)
  2221. Able = true
  2222. end
  2223. end
  2224. if Able then
  2225. if key == "g" and AbleG then
  2226. AbleG = false
  2227. if Resting == true then
  2228. Resting = false
  2229. else
  2230. rest()
  2231. end
  2232. wait(0.8)
  2233. AbleG = true
  2234. end
  2235. end
  2236. end)
  2237. end
  2238.  
  2239. function deselect(mouse)
  2240. selected = false
  2241. deselanim()
  2242. end
  2243. bin.Selected:connect(select)
  2244. bin.Deselected:connect(deselect)Ancor = game:GetService("Players")
  2245.  
  2246. me = Ancor.LocalPlayer
  2247. char = me.Character
  2248. Modelname = "Warhammah"
  2249. Toolname = "Warhammar"
  2250. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  2251. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2252. selected = false
  2253. effectOn = false
  2254. Hurt = false
  2255. Leghurt = false
  2256. Deb = true
  2257. LegDeb = true
  2258. Able = true
  2259. Resting = false
  2260. RestingAnim = false
  2261. AbleG = true
  2262. Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
  2263. Prop.AS = Prop.AS/300
  2264. Cam = workspace.CurrentCamera
  2265.  
  2266. ToolIcon = "http://www.roblox.com/asset/?id=49192762"
  2267. MouseIc = "http://www.roblox.com/asset/?id=49192792"
  2268. MouseDo = "http://www.roblox.com/asset/?id=49192819"
  2269.  
  2270. Add = {
  2271. Sphere = function(P)
  2272. local m = Instance.new("SpecialMesh",P)
  2273. m.MeshType = "Sphere"
  2274. return m
  2275. end,
  2276. BF = function(P)
  2277. local bf = Instance.new("BodyForce",P)
  2278. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  2279. return bf
  2280. end,
  2281. BP = function(P)
  2282. local bp = Instance.new("BodyPosition",P)
  2283. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2284. bp.P = 14000
  2285. return bp
  2286. end,
  2287. BG = function(P)
  2288. local bg = Instance.new("BodyGyro",P)
  2289. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  2290. bg.P = 14000
  2291. return bg
  2292. end,
  2293. Mesh = function(P, ID, x, y, z)
  2294. local m = Instance.new("SpecialMesh")
  2295. m.MeshId = ID
  2296. m.Scale = Vector3.new(x, y, z)
  2297. m.Parent = P
  2298. return m
  2299. end,
  2300. Sound = function(P, ID, vol, pitch)
  2301. local s = Instance.new("Sound")
  2302. s.SoundId = ID
  2303. s.Volume = vol
  2304. s.Pitch = pitch
  2305. s.Parent = P
  2306. return s
  2307. end
  2308. }
  2309.  
  2310. function find(tab, arg)
  2311. local ah = nil
  2312. for i,v in pairs(tab) do
  2313. if v == arg then
  2314. ah = v
  2315. end
  2316. end
  2317. return ah
  2318. end
  2319.  
  2320. function getAllParts(from)
  2321. local t = {}
  2322. function getParts(where)
  2323. for i, v in pairs(where:children()) do
  2324. if v:IsA("BasePart") then
  2325. if v.Parent ~= char and v.Parent.Parent ~= char then
  2326. table.insert(t, v)
  2327. end
  2328. end
  2329. getParts(v)
  2330. end
  2331. end
  2332. getParts(workspace)
  2333. return t
  2334. end
  2335.  
  2336. function RayCast(pos1, pos2, maxDist, forward)
  2337. local list = getAllParts(workspace)
  2338. local pos0 = pos1
  2339. for dist = 1, maxDist, forward do
  2340. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  2341. for _, v in pairs(list) do
  2342. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  2343. local s = v.Size
  2344. if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
  2345. return pos0, v
  2346. end
  2347. end
  2348. end
  2349. return pos0, nil
  2350. end
  2351.  
  2352. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  2353. local p = Instance.new("Part")
  2354. p.formFactor = "Custom"
  2355. p.Anchored = Anchor
  2356. p.CanCollide = Collide
  2357. p.Transparency = Tran
  2358. p.Reflectance = Ref
  2359. p.BrickColor = BrickColor.new(Color)
  2360. for _, Surf in pairs(Surfaces) do
  2361. p[Surf] = "Smooth"
  2362. end
  2363. p.Size = Vector3.new(X, Y, Z)
  2364. if Break then
  2365. p:BreakJoints()
  2366. else p:MakeJoints() end
  2367. p.Parent = Parent
  2368. p.Locked = true
  2369. return p
  2370. end
  2371.  
  2372. function Weld(p0, p1, x, y, z, a, b, c)
  2373. local w = Instance.new("Weld")
  2374. w.Parent = p0
  2375. w.Part0 = p0
  2376. w.Part1 = p1
  2377. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  2378. return w
  2379. end
  2380.  
  2381. function ComputePos(pos1, pos2)
  2382. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  2383. return CFrame.new(pos1, pos3)
  2384. end
  2385.  
  2386. function getHumanoid(c)
  2387. local h = nil
  2388. for i,v in pairs(c:children()) do
  2389. if v:IsA("Humanoid") and c ~= char then
  2390. if v.Health > 0 then
  2391. h = v
  2392. end
  2393. end
  2394. end
  2395. return h
  2396. end
  2397.  
  2398. for i,v in pairs(char:children()) do
  2399. if v.Name == Modelname then
  2400. v:remove()
  2401. end
  2402. end
  2403.  
  2404. pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
  2405.  
  2406. Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
  2407. Sc.Name = "RaigMeter"
  2408.  
  2409. Fr = Instance.new("Frame",Sc)
  2410. Fr.Size = UDim2.new(0, 250, 0, 28)
  2411. Fr.Position = UDim2.new(0.5, -125, 0, 5)
  2412. Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
  2413.  
  2414. Met = Instance.new("Frame", Fr)
  2415. Met.Size = UDim2.new(1, -10, 1, -6)
  2416. Met.Position = UDim2.new(0, 5, 0, 3)
  2417. Met.BackgroundColor3 = Color3.new(0, 0, 0)
  2418. Met.BorderSizePixel = 0
  2419.  
  2420. Meter = Instance.new("ImageLabel", Met)
  2421. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  2422. Meter.Position = UDim2.new(0, 0, 0, 1)
  2423. Meter.Image = "http://www.roblox.com/asset/?id=48965808"
  2424. Meter.BorderSizePixel = 0
  2425. Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
  2426.  
  2427. Tx = Instance.new("TextLabel", Met)
  2428. Tx.Size = UDim2.new(0, 0, 1, 0)
  2429. Tx.Position = UDim2.new(0, 5, 0, 0)
  2430. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  2431. Tx.Font = "ArialBold"
  2432. Tx.FontSize = "Size18"
  2433. Tx.BackgroundTransparency = 1
  2434. Tx.TextColor3 = Color3.new(1, 0, 0)
  2435. Tx.TextXAlignment = "Left"
  2436.  
  2437. laast = Prop.Rage
  2438. coroutine.resume(coroutine.create(function()
  2439. while true do
  2440. wait()
  2441. if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
  2442. if laast ~= Prop.Rage then
  2443. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  2444. laast = Prop.Rage
  2445. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  2446. end
  2447. end
  2448. end))
  2449.  
  2450. torso = char.Torso
  2451. neck = torso.Neck
  2452. hum = char.Humanoid
  2453. Rarm = char["Right Arm"]
  2454. Larm = char["Left Arm"]
  2455. Rleg = char["Right Leg"]
  2456. Lleg = char["Left Leg"]
  2457.  
  2458. hc = Instance.new("Humanoid")
  2459. hc.Health = 0
  2460. hc.MaxHealth = 0
  2461.  
  2462. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  2463. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  2464. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  2465. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  2466. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  2467. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  2468. equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
  2469.  
  2470. function PlaySound(sound, pitch)
  2471. local s = sound:clone()
  2472. if pitch ~= nil then
  2473. if tonumber(pitch) then
  2474. s.Pitch = tonumber(pitch)
  2475. end
  2476. end
  2477. s.Parent = torso
  2478. s.PlayOnRemove = true
  2479. coroutine.resume(coroutine.create(function()
  2480. wait()
  2481. s:remove()
  2482. end))
  2483. end
  2484.  
  2485. Mo = Instance.new("Model")
  2486. Mo.Name = Modelname
  2487.  
  2488. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  2489. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  2490. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  2491. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  2492.  
  2493. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  2494. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  2495. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  2496. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  2497.  
  2498. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  2499. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  2500. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  2501. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  2502.  
  2503. HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  2504. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  2505. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  2506.  
  2507. TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
  2508.  
  2509. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  2510.  
  2511. handle = Part(Mo, false, false, 0, 0, "White", 0.4, 5, 0.4, true)
  2512. handle.Name = "Handle"
  2513. Instance.new("SpecialMesh",handle)
  2514.  
  2515. maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
  2516. Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
  2517.  
  2518. DMGParts = {}
  2519.  
  2520. for i = 0, 135, 45 do
  2521. local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
  2522. Instance.new("BlockMesh",tip)
  2523. Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
  2524. table.insert(DMGParts, tip)
  2525. for a = -0.9, 0.9, 1.8 do
  2526. for x = 0, math.pi, math.pi do
  2527. local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
  2528. local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
  2529. w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  2530. w.C1 = CFrame.new(0, -1, 0)
  2531. Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
  2532. local trim = Part(Mo, false, false, 0, 0, "White", 0.67, 0.1, 0.5, true)
  2533. local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
  2534. w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  2535. w2.C1 = CFrame.new(0, -0.58, 0)
  2536. end
  2537. end
  2538. end
  2539.  
  2540. spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
  2541. Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
  2542. Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
  2543.  
  2544. table.insert(DMGParts, spiketip)
  2545.  
  2546. local handletip1 = Part(Mo, false, false, 0, 0.2, "White", 0.5, 0.5, 0.5, true)
  2547. local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
  2548. w1.C0 = CFrame.new(0, -2.6, 0)
  2549. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
  2550.  
  2551. local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  2552. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  2553. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
  2554.  
  2555.  
  2556. Mo.Parent = char
  2557. TH.Part1 = handle
  2558.  
  2559. function showdmg(dmg, p, pos)
  2560. local mo = Instance.new("Model")
  2561. mo.Name = dmg
  2562. local pa = Part(mo, false, true, 0, 0, "White", 0.8, 0.3, 0.8, true)
  2563. pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
  2564. pa.Name = "Head"
  2565. local hah = hc:clone()
  2566. hah.Parent = mo
  2567. local bp = Add.BP(pa)
  2568. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2569. bp.position = p.Position + Vector3.new(0, 3+pos, 0)
  2570. Add.BG(pa)
  2571. coroutine.resume(coroutine.create(function()
  2572. wait()
  2573. mo.Parent = workspace
  2574. wait(1.4)
  2575. mo:remove()
  2576. end))
  2577. end
  2578.  
  2579.  
  2580. function damage(hum, p, num, dm1, dm2)
  2581. local dmg = math.random(dm1, dm2)
  2582. hum.Health = hum.Health - dmg
  2583. showdmg(dmg, p, num)
  2584. return dmg
  2585. end
  2586.  
  2587. function brickdamage(hit)
  2588. local h = getHumanoid(hit.Parent)
  2589. if h ~= nil and Hurt and Deb then
  2590. Deb = false
  2591. local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
  2592. PlaySound(hitsound)
  2593. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  2594. wait(0.3)
  2595. Deb = true
  2596. end
  2597. end
  2598.  
  2599. function legdamage(hit)
  2600. local h = getHumanoid(hit.Parent)
  2601. if h ~= nil and Leghurt and LegDeb then
  2602. LegDeb = false
  2603. local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
  2604. PlaySound(hitsound)
  2605. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  2606. coroutine.resume(coroutine.create(function()
  2607. local haha = math.random(1,3)
  2608. if haha == 1 then
  2609. h.PlatformStand = true
  2610. wait()
  2611. local ps = getAllParts(h.Parent)
  2612. for i, v in pairs(ps) do
  2613. if v.Anchored == false then
  2614. v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
  2615. v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  2616. end
  2617. end
  2618. wait(0.8)
  2619. h.PlatformStand = false
  2620. end
  2621. end))
  2622. wait(0.2)
  2623. LegDeb = true
  2624. end
  2625. end
  2626.  
  2627. for i, v in pairs({Rleg, Lleg}) do
  2628. v.Touched:connect(legdamage)
  2629. end
  2630.  
  2631. for i,v in pairs(DMGParts) do
  2632. v.Touched:connect(brickdamage)
  2633. end
  2634.  
  2635. if script.Parent.className ~= "HopperBin" then
  2636. h = Instance.new("HopperBin",me.Backpack)
  2637. h.Name = Toolname
  2638. h.TextureId = ToolIcon
  2639. script.Parent = h
  2640. end
  2641.  
  2642. bin = script.Parent
  2643.  
  2644. function StartEffect(part)
  2645. effectOn = true
  2646. local lastPoint = part.Position
  2647. coroutine.resume(coroutine.create(function()
  2648. while effectOn do
  2649. wait()
  2650. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  2651. local mag = (lastPoint - part.Position).magnitude
  2652. local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
  2653. local m = Instance.new("SpecialMesh",p)
  2654. p.CFrame = point * CFrame.new(0, mag/2, 0)
  2655. m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
  2656. lastPoint = part.Position
  2657. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  2658. end
  2659. end))
  2660. end
  2661.  
  2662. function EndEffect()
  2663. effectOn = false
  2664. end
  2665.  
  2666. function detach(bool)
  2667. LLW.C0 = CFrame.new(0, 0, 0)
  2668. RLW.C0 = CFrame.new(0, 0, 0)
  2669. LAW.C0 = CFrame.new(0,0,0)
  2670. RAW.C0 = CFrame.new(0, 0, 0)
  2671. if bool then
  2672. LLW.Part1 = nil
  2673. RLW.Part1 = nil
  2674. RAW.Part1 = nil
  2675. LAW.Part1 = nil
  2676. end
  2677. end
  2678.  
  2679. function attach()
  2680. RAW.Part1 = Rarm
  2681. LAW.Part1 = Larm
  2682. RLW.Part1 = Rleg
  2683. LLW.Part1 = Lleg
  2684. end
  2685.  
  2686. function normal()
  2687. neck.C0 = necko
  2688. RAW.C0 = RAWStand
  2689. LAW.C0 = LAWStand
  2690. RLW.C0 = RLWStand
  2691. LLW.C0 = LLWStand
  2692. RAW.C1 = CFrame.new(0, 0.5, 0)
  2693. LAW.C1 = CFrame.new(0, 0.5, 0)
  2694. RLW.C1 = CFrame.new(0, 0.8, 0)
  2695. LLW.C1 = CFrame.new(0, 0.8, 0)
  2696. HW.C0 = HWStand
  2697. end
  2698.  
  2699. function idleanim()
  2700. attach()
  2701. for i = 0, 10, 10/22 do
  2702. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  2703. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  2704. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  2705. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  2706. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  2707. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  2708. wait()
  2709. end
  2710. wait()
  2711. for i = 10, 0, -10/29 do
  2712. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  2713. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  2714. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  2715. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  2716. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  2717. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  2718. wait()
  2719. end
  2720. normal()
  2721. end
  2722.  
  2723. function runanim()
  2724. RLW.Part1 = nil
  2725. LLW.Part1 = nil
  2726. end
  2727.  
  2728. coroutine.resume(coroutine.create(function()
  2729. while true do
  2730. wait()
  2731. if selected and Able == true and RestingAnim == false then
  2732. if torso.Velocity.magnitude < 2 then
  2733. idleanim()
  2734. wait()
  2735. else
  2736. runanim()
  2737. wait()
  2738. end
  2739. end
  2740. end
  2741. end))
  2742.  
  2743. function selectanim()
  2744. if RestingAnim == false and Able == true then
  2745. local ah = CFrame.Angles(0, 0, math.rad(90))
  2746. RAW.Part1 = Rarm
  2747. for i = 0, 270, 270/5 do
  2748. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  2749. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  2750. wait()
  2751. end
  2752. HW.C0 = ah
  2753. HW.Part1 = handle
  2754. TH.Part1 = nil
  2755. PlaySound(equip)
  2756. for i = 270, 70, -200/13 do
  2757. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  2758. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  2759. wait()
  2760. end
  2761. attach()
  2762. for i = 70, 120, 50/8 do
  2763. local asd = i-70
  2764. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  2765. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  2766. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  2767. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  2768. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  2769. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  2770. wait()
  2771. end
  2772. if RAWStand == nil then
  2773. RAWStand = RAW.C0
  2774. LAWStand = LAW.C0
  2775. RLWStand = RLW.C0
  2776. LLWStand = LLW.C0
  2777. HWStand = HW.C0
  2778. end
  2779. normal()
  2780. end
  2781. end
  2782.  
  2783. function deselanim()
  2784. if RestingAnim == false and Able == true then
  2785. local ah = CFrame.Angles(0, 0, math.rad(90))
  2786. for i = 120, 70, -50/8 do
  2787. local asd = i-70
  2788. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  2789. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  2790. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  2791. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  2792. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  2793. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  2794. wait()
  2795. end
  2796. LLW.Part1 = nil
  2797. RLW.Part1 = nil
  2798. LAW.Part1 = nil
  2799. for i = 70, 270, 200/13 do
  2800. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  2801. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  2802. wait()
  2803. end
  2804. HW.C0 = ah
  2805. HW.Part1 = nil
  2806. TH.Part1 = handle
  2807. for i = 270, 0, -270/6 do
  2808. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  2809. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  2810. wait()
  2811. end
  2812. neck.C0 = necko
  2813. detach(true)
  2814. end
  2815. end
  2816.  
  2817. function smash(mouse)
  2818. attach()
  2819. local mouseHit = mouse
  2820. local Orig = torso.CFrame
  2821. local bg = Add.BG(torso)
  2822. local bp = Add.BP(torso)
  2823. bp.position = Orig.p
  2824. local CF = ComputePos(Orig.p, mouseHit)
  2825. local CF2 = CF
  2826. bg.cframe = CF2
  2827. PlaySound(slash)
  2828. for i = 0, 1, Prop.AS*1.1 do
  2829. RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
  2830. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
  2831. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
  2832. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
  2833. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
  2834. neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
  2835. wait()
  2836. end
  2837. bp.position = CF * CFrame.new(0, 0, -1.1).p
  2838. StartEffect(maintip)
  2839. Hurt = true
  2840. for i = 0, 1, Prop.AS*1.5 do
  2841. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0)
  2842. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0)
  2843. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
  2844. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
  2845. HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
  2846. neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
  2847. wait()
  2848. end
  2849. Hurt = false
  2850. EndEffect()
  2851. PlaySound(smashsound)
  2852. bp.position = CF * CFrame.new(0, 0, -1.9).p
  2853. for i = 0, 1, Prop.AS do
  2854. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0)
  2855. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0)
  2856. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
  2857. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
  2858. HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
  2859. neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
  2860. wait()
  2861. end
  2862. normal()
  2863. bg:remove()
  2864. bp:remove()
  2865. end
  2866.  
  2867. function swing(mouse)
  2868. attach()
  2869. local mouseHit = mouse
  2870. local Orig = torso.CFrame
  2871. local bg = Add.BG(torso)
  2872. local bp = Add.BP(torso)
  2873. bp.position = Orig.p
  2874. local CF = ComputePos(Orig.p, mouseHit)
  2875. local CF2 = CF
  2876. bg.cframe = CF2
  2877. PlaySound(slash)
  2878. for i = 0, 1, Prop.AS*1.5 do
  2879. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
  2880. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
  2881. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
  2882. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
  2883. HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
  2884. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
  2885. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
  2886. wait()
  2887. end
  2888. Hurt = true
  2889. StartEffect(maintip)
  2890. for i = 0, 1, Prop.AS*1.3 do
  2891. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
  2892. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
  2893. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
  2894. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
  2895. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
  2896. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
  2897. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
  2898. wait()
  2899. end
  2900. EndEffect()
  2901. Hurt = false
  2902. for i = 0, 1, Prop.AS*0.8 do
  2903. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0)
  2904. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0)
  2905. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
  2906. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  2907. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i)
  2908. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
  2909. bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
  2910. wait()
  2911. end
  2912. normal()
  2913. bg:remove()
  2914. bp:remove()
  2915. end
  2916.  
  2917. function stab(mouse)
  2918. attach()
  2919. local mouseHit = mouse
  2920. local Orig = torso.CFrame
  2921. local bg = Add.BG(torso)
  2922. local bp = Add.BP(torso)
  2923. bp.position = Orig.p
  2924. local CF = ComputePos(Orig.p, mouseHit)
  2925. local CF2 = CF
  2926. bg.cframe = CF2
  2927. PlaySound(slash)
  2928. for i = 0, 1, Prop.AS do
  2929. RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0)
  2930. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
  2931. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
  2932. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
  2933. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
  2934. neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
  2935. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
  2936. wait()
  2937. end
  2938. StartEffect(maintip)
  2939. Hurt = true
  2940. bp.position = CF * CFrame.new(0, 0, -0.6).p
  2941. for i = 0, 1, Prop.AS*1.5 do
  2942. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0)
  2943. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0)
  2944. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
  2945. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
  2946. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
  2947. neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
  2948. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
  2949. wait()
  2950. end
  2951. Hurt = false
  2952. EndEffect()
  2953. bp.position = CF.p
  2954. for i = 0, 1, Prop.AS*1.1 do
  2955. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0)
  2956. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0)
  2957. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
  2958. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
  2959. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
  2960. neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
  2961. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
  2962. wait()
  2963. end
  2964. normal()
  2965. bg:remove()
  2966. bp:remove()
  2967. end
  2968.  
  2969. function epicsmashfunc(hit)
  2970. local ch = hit.Parent
  2971. local h = getHumanoid(ch)
  2972. local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
  2973. return h, t, head
  2974. end
  2975.  
  2976. function epicsmash(mouse)
  2977. if Prop.Rage >= 50 then
  2978. attach()
  2979. local mouseHit = mouse
  2980. local Orig = torso.CFrame
  2981. local bg = Add.BG(torso)
  2982. local bp = Add.BP(torso)
  2983. bp.position = Orig.p
  2984. local CF = ComputePos(Orig.p, mouseHit)
  2985. bg.cframe = CF
  2986. local hu, to, head = nil, nil, nil
  2987. local Epic = true
  2988. local conn = Lleg.Touched:connect(function(hit)
  2989. if Epic then
  2990. hu, to, head = epicsmashfunc(hit)
  2991. if hu and to and head then Epic = false end
  2992. end
  2993. end)
  2994. PlaySound(slash)
  2995. for i = 0, 1, 0.12 do
  2996. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
  2997. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
  2998. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
  2999. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
  3000. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
  3001. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
  3002. bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
  3003. wait()
  3004. end
  3005. conn:disconnect()
  3006. if hu and to and head then
  3007. Prop.Rage = Prop.Rage - 50
  3008. hu.PlatformStand = true
  3009. local bg2 = Add.BG(to)
  3010. bg2.P = 6000
  3011. bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
  3012. local bp2 = Add.BP(to)
  3013. bp2.position = CF * CFrame.new(-1, -4, -4).p
  3014. bp2.P = 5000
  3015. wait(0.1)
  3016. for i = 0, 1, 0.045 do
  3017. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
  3018. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i)
  3019. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  3020. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  3021. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  3022. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
  3023. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
  3024. wait()
  3025. end
  3026. PlaySound(slash)
  3027. bp2:remove()
  3028. bg2:remove()
  3029. wait(0.2)
  3030. StartEffect(maintip)
  3031. for i = 0, 1, 0.1 do
  3032. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
  3033. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0)
  3034. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  3035. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  3036. HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
  3037. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
  3038. bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
  3039. wait()
  3040. end
  3041. coroutine.resume(coroutine.create(function()
  3042. local frr = Cam.CoordinateFrame
  3043. for i = 1, math.random(3,6) do
  3044. wait()
  3045. Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
  3046. end
  3047. end))
  3048. PlaySound(smashsound)
  3049. EndEffect()
  3050. local pos = head.Position
  3051. if (pos - maintip.Position).magnitude < 2 then
  3052. damage(hu, head, 0.3, hu.Health, hu.Health)
  3053. head:remove()
  3054. PlaySound(hitsound)
  3055. for i = 1, math.random(7, 17) do
  3056. local hmm = math.random(1,6)
  3057. if hmm < 6 then
  3058. local cols = {"White", "Really red"}
  3059. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10)
  3060. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  3061. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  3062. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  3063. else
  3064. local cols = {"Institutional white", "White"}
  3065. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10)
  3066. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  3067. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  3068. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  3069. end
  3070. end
  3071. end
  3072. for i = 0, 1, 0.06 do
  3073. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i))
  3074. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0)
  3075. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  3076. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  3077. HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
  3078. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
  3079. bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
  3080. wait()
  3081. end
  3082. else
  3083. for i = 0, 1, 0.08 do
  3084. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0)
  3085. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i)
  3086. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  3087. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  3088. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  3089. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
  3090. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
  3091. wait()
  3092. end
  3093. bg:remove()
  3094. bp:remove()
  3095. normal()
  3096. end
  3097. normal()
  3098. bg:remove()
  3099. bp:remove()
  3100. end
  3101. end
  3102.  
  3103.  
  3104. function shockwave(mouse)
  3105. local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
  3106. if Prop.Rage >= 80 and t then
  3107. Prop.Rage = Prop.Rage - 80
  3108. attach()
  3109. local mouseHit = mouse
  3110. local Orig = torso.CFrame
  3111. local bg = Add.BG(torso)
  3112. local bp = Add.BP(torso)
  3113. bp.position = Orig.p
  3114. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  3115. bp.P = 5000
  3116. local CF = ComputePos(Orig.p, mouseHit)
  3117. bg.cframe = CF
  3118. PlaySound(charge)
  3119. for i = 0, 1, 0.07 do
  3120. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  3121. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  3122. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
  3123. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  3124. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  3125. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  3126. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  3127. bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
  3128. wait()
  3129. end
  3130. for i = 0, 1, 0.04 do
  3131. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  3132. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i)
  3133. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i)
  3134. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  3135. HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
  3136. neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
  3137. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  3138. bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
  3139. wait()
  3140. end
  3141. bp.P = 12001
  3142. wait(0.1)
  3143. StartEffect(maintip)
  3144. PlaySound(slash)
  3145. for i = 0, 1, 0.1 do
  3146. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i)
  3147. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
  3148. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i)
  3149. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  3150. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
  3151. neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
  3152. bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
  3153. bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
  3154. wait()
  3155. end
  3156. coroutine.resume(coroutine.create(function()
  3157. local frr = Cam.CoordinateFrame
  3158. for i = 1, math.random(10,16) do
  3159. wait()
  3160. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  3161. end
  3162. end))
  3163. PlaySound(smashsound)
  3164. local pos = CF * CFrame.new(-2, -3, -3).p
  3165. EndEffect()
  3166. local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  3167. p.CFrame = CFrame.new(pos)
  3168. local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  3169. p2.CFrame = CFrame.new(pos)
  3170. local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  3171. p3.CFrame = CFrame.new(pos)
  3172. local m3 = Instance.new("SpecialMesh",p3)
  3173. m3.MeshType = "Sphere"
  3174. PlaySound(boom)
  3175. local m2 = Instance.new("CylinderMesh",p2)
  3176. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
  3177. local tab = {}
  3178. coroutine.resume(coroutine.create(function()
  3179. for x = 0, 1.04, 0.04 do
  3180. wait()
  3181. local thing = 33*x
  3182. m.Scale = Vector3.new(21*x, 5*x, 21*x)
  3183. m2.Scale = Vector3.new(thing, 1, thing)
  3184. m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
  3185. p.Transparency = x
  3186. p2.Transparency = x
  3187. p3.Transparency = x
  3188. for i, v in pairs(workspace:children()) do
  3189. local h = getHumanoid(v)
  3190. local to = v:findFirstChild("Torso")
  3191. if h ~= nil and to ~= nil and find(tab, v) == nil then
  3192. if (to.Position - pos).magnitude < (thing/2) then
  3193. damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
  3194. to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
  3195. to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  3196. h.PlatformStand = true
  3197. table.insert(tab, v)
  3198. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  3199. end
  3200. end
  3201. end
  3202. end
  3203. p:remove()
  3204. p2:remove()
  3205. p3:remove()
  3206. end))
  3207. wait(0.8)
  3208. for i = 0, 1, Prop.AS*0.8 do
  3209. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i)
  3210. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0)
  3211. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i)
  3212. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  3213. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
  3214. neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
  3215. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  3216. bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
  3217. wait()
  3218. end
  3219. normal()
  3220. bg:remove()
  3221. bp:remove()
  3222. end
  3223. end
  3224.  
  3225. function flipsmash(mouse)
  3226. local Orig = torso.CFrame
  3227. local mouseHit = mouse
  3228. local CF = ComputePos(Orig.p, mouseHit)
  3229. local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
  3230. local ahp = (CF * CFrame.new(0, 0, -14.5))
  3231. local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
  3232. if t and t2 and Prop.Rage >= 90 then
  3233. Prop.Rage = Prop.Rage - 90
  3234. attach()
  3235. local bg = Add.BG(torso)
  3236. local bp = Add.BP(torso)
  3237. bp.position = Orig.p
  3238. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  3239. bg.cframe = CF
  3240. local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
  3241. for i = 0, 1, 0.08 do
  3242. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  3243. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  3244. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
  3245. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
  3246. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  3247. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  3248. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  3249. bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
  3250. wait()
  3251. end
  3252. wait(0.15)
  3253. hum.PlatformStand = true
  3254. for i = 0, 1, 0.13 do
  3255. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
  3256. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
  3257. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  3258. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
  3259. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
  3260. neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
  3261. bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
  3262. bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  3263. wait()
  3264. end
  3265. PlaySound(slash)
  3266. for i = 0, 1, 0.13 do
  3267. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  3268. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i)
  3269. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
  3270. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
  3271. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
  3272. neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
  3273. bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
  3274. bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  3275. wait()
  3276. end
  3277. StartEffect(maintip)
  3278. PlaySound(slash)
  3279. for i = 0, 1, 0.06 do
  3280. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0)
  3281. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
  3282. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
  3283. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
  3284. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
  3285. neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
  3286. bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
  3287. bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  3288. wait()
  3289. end
  3290. coroutine.resume(coroutine.create(function()
  3291. local frr = Cam.CoordinateFrame
  3292. for i = 1, math.random(13,20) do
  3293. wait()
  3294. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  3295. end
  3296. end))
  3297. PlaySound(smashsound)
  3298. PlaySound(boomboom)
  3299. EndEffect()
  3300. local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
  3301. local siz = math.random(65,115)/10
  3302. local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
  3303. partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
  3304. local decc = Instance.new("Decal",partie)
  3305. decc.Shiny = 0
  3306. decc.Specular = 0
  3307. decc.Texture = "http://www.roblox.com/asset/?id=49173398"
  3308. decc.Face = "Top"
  3309. local count = 0
  3310. for i, v in pairs(workspace:children()) do
  3311. local h = getHumanoid(v)
  3312. local to = v:findFirstChild("Torso")
  3313. if h ~= nil and to ~= nil then
  3314. if (to.Position - poo).magnitude < 15 then
  3315. count = count + 1
  3316. local Maxhp = h.MaxHealth
  3317. if Maxhp > 5000 then Maxhp = 5000 end
  3318. damage(h, to, 0.5, 0, Maxhp+5)
  3319. to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
  3320. to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
  3321. to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3322. h.PlatformStand = true
  3323. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  3324. if count >= 2 then break end
  3325. end
  3326. end
  3327. end
  3328. coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
  3329. wait(0.6)
  3330. for i = 0, 1, 0.06 do
  3331. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0)
  3332. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0)
  3333. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0)
  3334. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  3335. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
  3336. neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
  3337. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  3338. bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
  3339. wait()
  3340. end
  3341. hum.PlatformStand = false
  3342. normal()
  3343. bg:remove()
  3344. bp:remove()
  3345. end
  3346. end
  3347.  
  3348. function spin(mouse)
  3349. attach()
  3350. local mouseHit = mouse
  3351. local Orig = torso.CFrame
  3352. local CF = ComputePos(Orig.p, mouseHit)
  3353. local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
  3354. if t then
  3355. local bg = Add.BG(torso)
  3356. local bp = Add.BP(torso)
  3357. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  3358. bp.position = Orig.p
  3359. bg.cframe = CF
  3360. PlaySound(slash)
  3361. for i = 0, 1, 0.11 do
  3362. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
  3363. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
  3364. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
  3365. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
  3366. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
  3367. HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
  3368. neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
  3369. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  3370. wait()
  3371. end
  3372. local posg = CF * CFrame.new(0, -0.6, -4)
  3373. PlaySound(hitsound, 0.9)
  3374. for i = 0, 1, 0.13 do
  3375. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i)
  3376. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
  3377. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0)
  3378. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i)
  3379. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  3380. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
  3381. neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
  3382. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  3383. bp.position = CF * CFrame.new(0, 1*i, -2*i).p
  3384. wait()
  3385. end
  3386. hum.PlatformStand = true
  3387. bg.Parent = handle
  3388. bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
  3389. bp.Parent = handle
  3390. bp.position = posg.p
  3391. StartEffect(Lleg)
  3392. Leghurt = true
  3393. PlaySound(slash)
  3394. for i = 0, 1, 0.09 do
  3395. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  3396. RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
  3397. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0)
  3398. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
  3399. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
  3400. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
  3401. neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
  3402. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
  3403. wait()
  3404. end
  3405. for i = 0, 1, 0.055 do
  3406. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
  3407. RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
  3408. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
  3409. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
  3410. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
  3411. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  3412. neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
  3413. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
  3414. wait()
  3415. end
  3416. EndEffect()
  3417. Leghurt = false
  3418. for i = 0, 1, 0.12 do
  3419. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i)
  3420. RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
  3421. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
  3422. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
  3423. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
  3424. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  3425. neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  3426. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
  3427. wait()
  3428. end
  3429. bg.Parent = torso
  3430. bp.Parent = torso
  3431. bg.cframe = CF
  3432. for i = 0, 1, 0.14 do
  3433. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  3434. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
  3435. LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
  3436. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
  3437. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
  3438. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
  3439. neck.C0 = necko * CFrame.Angles(0, 0, 0)
  3440. bp.position = CF * CFrame.new(0, 0, -2+1*i).p
  3441. bg.cframe = CF
  3442. wait()
  3443. end
  3444. hum.PlatformStand = false
  3445. normal()
  3446. bg:remove()
  3447. bp:remove()
  3448. end
  3449. end
  3450.  
  3451. function rest()
  3452. local Orig = torso.CFrame
  3453. local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
  3454. local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
  3455. if t then
  3456. attach()
  3457. local bg = Add.BG(torso)
  3458. local bp = Add.BP(torso)
  3459. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  3460. bp.position = CF.p
  3461. bg.cframe = CF
  3462. local cen = CF * CFrame.new(0, -2.5, 0)
  3463. RestingAnim = true
  3464. hum.PlatformStand = true
  3465. local standup = function()
  3466. Resting = false
  3467. bp.Parent = torso
  3468. cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
  3469. for i = 1, 0, -0.12 do
  3470. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  3471. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  3472. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
  3473. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
  3474. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  3475. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  3476. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  3477. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  3478. wait()
  3479. end
  3480. for i = 1, 0, -0.17 do
  3481. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  3482. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  3483. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  3484. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  3485. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  3486. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  3487. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  3488. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  3489. wait()
  3490. end
  3491. hum.PlatformStand = false
  3492. bg:remove()
  3493. bp:remove()
  3494. normal()
  3495. Able = true
  3496. RestingAnim = false
  3497. end
  3498. local connec = hum.Changed:connect(function()
  3499. if hum.PlatformStand == false then
  3500. coroutine.resume(coroutine.create(function()
  3501. standup()
  3502. end))
  3503. standup = nil
  3504. connec:disconnect()
  3505. end
  3506. end)
  3507. local lasthp = hum.Health
  3508. local conn = hum.HealthChanged:connect(function(hp)
  3509. if lasthp - hp > 0.8 then
  3510. hum.PlatformStand = false
  3511. conn:disconnect()
  3512. end
  3513. lasthp = hp
  3514. end)
  3515. coroutine.resume(coroutine.create(function()
  3516. repeat wait() until Resting
  3517. while Resting do
  3518. wait()
  3519. if torso.Velocity.magnitude > 4 then
  3520. hum.PlatformStand = false
  3521. break
  3522. end
  3523. end
  3524. end))
  3525. for i = 0, 1, 0.1 do
  3526. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  3527. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  3528. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
  3529. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
  3530. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  3531. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  3532. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  3533. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  3534. wait()
  3535. end
  3536. for i = 0, 1, 0.07 do
  3537. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  3538. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  3539. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
  3540. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
  3541. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  3542. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  3543. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  3544. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  3545. wait()
  3546. end
  3547. Resting = true
  3548. coroutine.resume(coroutine.create(function()
  3549. wait(0.4)
  3550. bp.Parent = nil
  3551. end))
  3552. coroutine.resume(coroutine.create(function()
  3553. while Resting and selected do
  3554. wait(math.random(350,800)/1000)
  3555. hum.Health = hum.Health + math.random(1,2)
  3556. Prop.Rage = Prop.Rage + 1
  3557. end
  3558. hum.PlatformStand = false
  3559. end))
  3560. end
  3561. end
  3562.  
  3563. function select(mouse)
  3564. mouse.Icon = MouseIc
  3565. selectanim()
  3566. selected = true
  3567. mouse.Button1Down:connect(function()
  3568. if Able and RestingAnim == false and hum.Sit == false then
  3569. Able = false
  3570. swing(mouse.Hit.p)
  3571. Able = true
  3572. end
  3573. end)
  3574. mouse.Button1Down:connect(function()
  3575. mouse.Icon = MouseDo
  3576. mouse.Button1Up:wait()
  3577. mouse.Icon = MouseIc
  3578. end)
  3579. mouse.KeyDown:connect(function(key)
  3580. key = key:lower()
  3581. if Able and RestingAnim == false and hum.Sit == false then
  3582. if key == "q" then
  3583. Able = false
  3584. smash(mouse.Hit.p)
  3585. Able = true
  3586. elseif key == "e" then
  3587. Able = false
  3588. swing(mouse.Hit.p)
  3589. Able = true
  3590. elseif key == "r" then
  3591. Able = false
  3592. stab(mouse.Hit.p)
  3593. Able = true
  3594. elseif key == "f" then
  3595. Able = false
  3596. epicsmash(mouse.Hit.p)
  3597. Able = true
  3598. elseif key == "z" then
  3599. Able = false
  3600. shockwave(mouse.Hit.p)
  3601. Able = true
  3602. elseif key == "x" then
  3603. Able = false
  3604. flipsmash(mouse.Hit.p)
  3605. Able = true
  3606. elseif key == "t" then
  3607. Able = false
  3608. spin(mouse.Hit.p)
  3609. Able = true
  3610. end
  3611. end
  3612. if Able then
  3613. if key == "g" and AbleG then
  3614. AbleG = false
  3615. if Resting == true then
  3616. Resting = false
  3617. else
  3618. rest()
  3619. end
  3620. wait(0.8)
  3621. AbleG = true
  3622. end
  3623. end
  3624. end)
  3625. end
  3626.  
  3627. function deselect(mouse)
  3628. selected = false
  3629. deselanim()
  3630. end
  3631. bin.Selected:connect(select)
  3632. bin.Deselected:connect(deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement