Advertisement
rewfsdg3

Untitled

Nov 3rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 65.38 KB | None | 0 0
  1. Plrs = game:GetService("Players")
  2.  
  3. me = owner
  4. char = me.Character
  5. Modelname = "Warhammah"
  6. Toolname = "Warhammar"
  7. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  8. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  9. selected = false
  10. effectOn = false
  11. Hurt = false
  12. Leghurt = false
  13. Deb = true
  14. LegDeb = true
  15. Able = true
  16. Resting = false
  17. RestingAnim = false
  18. AbleG = true
  19. Prop = {Damage = 42, Legdmg = 34, AS = 28, ShockDMG = 8000, Rage = 900000, RageIncome = 1, MaxRage = 900000}
  20. Prop.AS = Prop.AS/300
  21. Cam = workspace.CurrentCamera
  22.  
  23. ToolIcon = "http://www.roblox.com/asset/?id=49192762"
  24. MouseIc = "http://www.roblox.com/asset/?id=49192792"
  25. MouseDo = "http://www.roblox.com/asset/?id=49192819"
  26.  
  27. Add = {
  28.         Sphere = function(P)
  29.                 local m = Instance.new("SpecialMesh",P)
  30.                 m.MeshType = "Sphere"
  31.                 return m
  32.         end,
  33.         BF = function(P)
  34.                 local bf = Instance.new("BodyForce",P)
  35.                 bf.force = Vector3.new(0, P:GetMass()*187, 0)
  36.                 return bf
  37.         end,
  38.         BP = function(P)
  39.                 local bp = Instance.new("BodyPosition",P)
  40.                 bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  41.                 bp.P = 14000
  42.                 return bp
  43.         end,
  44.         BG = function(P)
  45.                 local bg = Instance.new("BodyGyro",P)
  46.                 bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  47.                 bg.P = 14000
  48.                 return bg
  49.         end,
  50.         Mesh = function(P, ID, x, y, z)
  51.                 local m = Instance.new("SpecialMesh")
  52.                 m.MeshId = ID
  53.                 m.Scale = Vector3.new(x, y, z)
  54.                 m.Parent = P
  55.                 return m
  56.         end,
  57.         Sound = function(P, ID, vol, pitch)
  58.                 local s = Instance.new("Sound")
  59.                 s.SoundId = ID
  60.                 s.Volume = vol
  61.                 s.Pitch = pitch
  62.                 s.Parent = P
  63.                 return s
  64.         end
  65. }
  66.  
  67. function find(tab, arg)
  68.         local ah = nil
  69.         for i,v in pairs(tab) do
  70.                 if v == arg then
  71.                         ah = v
  72.                 end
  73.         end
  74.         return ah
  75. end
  76.  
  77. function getAllParts(from)
  78.         local t = {}
  79.         function getParts(where)
  80.                 for i, v in pairs(where:children()) do
  81.                         if v:IsA("BasePart") then
  82.                                 if v.Parent ~= char and v.Parent.Parent ~= char then
  83.                                         table.insert(t, v)
  84.                                 end
  85.                         end
  86.                         getParts(v)
  87.                 end
  88.         end
  89.         getParts(workspace)
  90.         return t
  91. end
  92.  
  93. function RayCast(pos1, pos2, maxDist, forward)
  94.         local list = getAllParts(workspace)
  95.         local pos0 = pos1
  96.         for dist = 1, maxDist, forward do
  97.                 pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  98.                 for _, v in pairs(list) do
  99.                         local pos3 = v.CFrame:pointToObjectSpace(pos0)
  100.                         local s = v.Size
  101.                         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
  102.                                 return pos0, v
  103.                         end
  104.                 end
  105.         end
  106.         return pos0, nil
  107. end
  108.  
  109. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  110.         local p = Instance.new("Part")
  111.         p.formFactor = "Custom"
  112.         p.Anchored = Anchor
  113.         p.CanCollide = Collide
  114.         p.Transparency = Tran
  115.         p.Reflectance = Ref
  116.         p.BrickColor = BrickColor.new(Color)
  117.         for _, Surf in pairs(Surfaces) do
  118.                 p[Surf] = "Smooth"
  119.         end
  120.         p.Size = Vector3.new(X, Y, Z)
  121.         if Break then
  122.                 p:BreakJoints()
  123.         else p:MakeJoints() end
  124.         p.Parent = Parent
  125.         p.Locked = true
  126.         return p
  127. end
  128.  
  129. function Weld(p0, p1, x, y, z, a, b, c)
  130.         local w = Instance.new("Weld")
  131.         w.Parent = p0
  132.         w.Part0 = p0
  133.         w.Part1 = p1
  134.         w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  135.         return w
  136. end
  137.  
  138. function ComputePos(pos1, pos2)
  139.         local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  140.         return CFrame.new(pos1, pos3)
  141. end
  142.  
  143. function getHumanoid(c)
  144.         local h = nil
  145.         for i,v in pairs(c:children()) do
  146.                 if v:IsA("Humanoid") and c ~= char then
  147.                         if v.Health > 0 then
  148.                                 h = v
  149.                         end
  150.                 end
  151.         end
  152.         return h
  153. end
  154.  
  155. for i,v in pairs(char:children()) do
  156.         if v.Name == Modelname then
  157.                 v:remove()
  158.         end
  159. end
  160.  
  161. pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
  162.  
  163. Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
  164. Sc.Name = "RaigMeter"
  165.  
  166. Fr = Instance.new("Frame",Sc)
  167. Fr.Size = UDim2.new(0, 250, 0, 28)
  168. Fr.Position = UDim2.new(0.5, -125, 0, 5)
  169. Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
  170.  
  171. Met = Instance.new("Frame", Fr)
  172. Met.Size = UDim2.new(1, -10, 1, -6)
  173. Met.Position = UDim2.new(0, 5, 0, 3)
  174. Met.BackgroundColor3 = Color3.new(0, 0, 0)
  175. Met.BorderSizePixel = 0
  176.  
  177. Meter = Instance.new("ImageLabel", Met)
  178. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  179. Meter.Position = UDim2.new(0, 0, 0, 1)
  180. Meter.Image = "http://www.roblox.com/asset/?id=48965808"
  181. Meter.BorderSizePixel = 0
  182. Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
  183.  
  184. Tx = Instance.new("TextLabel", Met)
  185. Tx.Size = UDim2.new(0, 0, 1, 0)
  186. Tx.Position = UDim2.new(0, 5, 0, 0)
  187. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  188. Tx.Font = "ArialBold"
  189. Tx.FontSize = "Size18"
  190. Tx.BackgroundTransparency = 1
  191. Tx.TextColor3 = Color3.new(1, 0, 0)
  192. Tx.TextXAlignment = "Left"
  193.  
  194. laast = Prop.Rage
  195. coroutine.resume(coroutine.create(function()
  196.         while true do
  197.                 wait()
  198.                 if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
  199.                 if laast ~= Prop.Rage then
  200.                         Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  201.                         laast = Prop.Rage
  202.                         Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  203.                 end
  204.         end
  205. end))
  206.  
  207. torso = char.Torso
  208. neck = torso.Neck
  209. hum = char.Humanoid
  210. Rarm = char["Right Arm"]
  211. Larm = char["Left Arm"]
  212. Rleg = char["Right Leg"]
  213. Lleg = char["Left Leg"]
  214.  
  215. hc = Instance.new("Humanoid")
  216. hc.Health = 0
  217. hc.MaxHealth = 0
  218.  
  219. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  220. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  221. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  222. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  223. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  224. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  225. equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
  226.  
  227. function PlaySound(sound, pitch)
  228.         local s = sound:clone()
  229.         if pitch ~= nil then
  230.                 if tonumber(pitch) then
  231.                         s.Pitch = tonumber(pitch)
  232.                 end
  233.         end
  234.         s.Parent = torso
  235.         s.PlayOnRemove = true
  236.         coroutine.resume(coroutine.create(function()
  237.                 wait()
  238.                 s:remove()
  239.         end))
  240. end
  241.  
  242. Mo = Instance.new("Model")
  243. Mo.Name = Modelname
  244.  
  245. RABrick = Part(Mo, false, false, 1, 0, "Black", 0.1, 0.1, 0.1, true)
  246. LABrick = Part(Mo, false, false, 1, 0, "Black", 0.1, 0.1, 0.1, true)
  247. RLBrick = Part(Mo, false, false, 1, 0, "Black", 0.1, 0.1, 0.1, true)
  248. LLBrick = Part(Mo, false, false, 1, 0, "Black", 0.1, 0.1, 0.1, true)
  249.  
  250. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  251. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  252. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  253. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  254.  
  255. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  256. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  257. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  258. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  259.  
  260. HB = Part(Mo, false, false, 1, 0, "Black", 0.1, 0.1, 0.1, true)
  261. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  262. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  263.  
  264. TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
  265.  
  266. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  267.  
  268. handle = Part(Mo, false, false, 0, 0, "Really blue", 0.4, 5, 0.4, true)
  269. handle.Name = "Handle"
  270. Instance.new("SpecialMesh",handle)
  271.  
  272. maintip = Part(Mo, false, false, 1, 0, "Really black", 0.6, 0.5, 0.6, true)
  273. Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
  274.  
  275. DMGParts = {}
  276.  
  277. for i = 0, 135, 45 do
  278.         local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
  279.         Instance.new("BlockMesh",tip)
  280.         Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
  281.         table.insert(DMGParts, tip)
  282.         for a = -0.9, 0.9, 1.8 do
  283.                 for x = 0, math.pi, math.pi do
  284.                         local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
  285.                         local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
  286.                         w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  287.                         w.C1 = CFrame.new(0, -1, 0)
  288.                         Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
  289.                         local trim = Part(Mo, false, false, 0, 0, "Really black", 0.67, 0.1, 0.5, true)
  290.                         local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
  291.                         w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  292.                         w2.C1 = CFrame.new(0, -0.58, 0)
  293.                 end
  294.         end
  295. end
  296.  
  297. spiketip = Part(Mo, false, false, 0, 0.2, "Really blue", 0.3, 0.8, 0.3, true)
  298. Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
  299. Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
  300.  
  301. table.insert(DMGParts, spiketip)
  302.  
  303. local handletip1 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  304. local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
  305. w1.C0 = CFrame.new(0, -2.6, 0)
  306. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
  307.  
  308. local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  309. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  310. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
  311.  
  312.  
  313. Mo.Parent = char
  314. TH.Part1 = handle
  315.  
  316. function showdmg(dmg, p, pos)
  317.         local mo = Instance.new("Model")
  318.         mo.Name = dmg
  319.         local pa = Part(mo, false, true, 0, 0, "Really red", 0.8, 0.3, 0.8, true)
  320.         pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
  321.         pa.Name = "Head"
  322.         local hah = hc:clone()
  323.         hah.Parent = mo
  324.         local bp = Add.BP(pa)
  325.         bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  326.         bp.position = p.Position + Vector3.new(0, 3+pos, 0)
  327.         Add.BG(pa)
  328.         coroutine.resume(coroutine.create(function()
  329.                 wait()
  330.                 mo.Parent = workspace
  331.                 wait(1.4)
  332.                 mo:remove()
  333.         end))
  334. end
  335.  
  336.  
  337. function damage(hum, p, num, dm1, dm2)
  338.         local dmg = math.random(dm1, dm2)
  339.         hum.Health = hum.Health - dmg
  340.         showdmg(dmg, p, num)
  341.         return dmg
  342. end
  343.  
  344. function brickdamage(hit)
  345.         local h = getHumanoid(hit.Parent)
  346.         if h ~= nil and Hurt and Deb then
  347.                 Deb = false
  348.                 local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
  349.                 PlaySound(hitsound)
  350.                 Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  351.                 wait(0.3)
  352.                 Deb = true
  353.         end
  354. end
  355.  
  356. function legdamage(hit)
  357.         local h = getHumanoid(hit.Parent)
  358.         if h ~= nil and Leghurt and LegDeb then
  359.                 LegDeb = false
  360.                 local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
  361.                 PlaySound(hitsound)
  362.                 Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  363.                 coroutine.resume(coroutine.create(function()
  364.                         local haha = math.random(1,3)
  365.                         if haha == 1 then
  366.                                 h.PlatformStand = true
  367.                                 wait()
  368.                                 local ps = getAllParts(h.Parent)
  369.                                 for i, v in pairs(ps) do
  370.                                         if v.Anchored == false then
  371.                                                 v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
  372.                                                 v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  373.                                         end
  374.                                 end
  375.                                 wait(0.8)
  376.                                 h.PlatformStand = false
  377.                         end
  378.                 end))
  379.                 wait(0.2)
  380.                 LegDeb = true
  381.         end
  382. end
  383.  
  384. for i, v in pairs({Rleg, Lleg}) do
  385.         v.Touched:connect(legdamage)
  386. end
  387.  
  388. for i,v in pairs(DMGParts) do
  389.         v.Touched:connect(brickdamage)
  390. end
  391.  
  392. if script.Parent.className ~= "HopperBin" then
  393.         h = Instance.new("HopperBin",me.Backpack)
  394.         h.Name = Toolname
  395.         h.TextureId = ToolIcon
  396.         script.Parent = h
  397. end
  398.  
  399. bin = script.Parent
  400.  
  401. function StartEffect(part)
  402.         effectOn = true
  403.         local lastPoint = part.Position
  404.         coroutine.resume(coroutine.create(function()
  405.                 while effectOn do
  406.                         wait()
  407.                         local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  408.                         local mag = (lastPoint - part.Position).magnitude
  409.                         local p = Part(workspace, true, false, 0.1, 0, "Institutional white", 1, 1, 1, true)
  410.                         local m = Instance.new("SpecialMesh",p)
  411.                         p.CFrame = point * CFrame.new(0, mag/2, 0)
  412.                         m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
  413.                         lastPoint = part.Position
  414.                         coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  415.                 end
  416.         end))
  417. end
  418.  
  419. function EndEffect()
  420.         effectOn = false
  421. end
  422.  
  423. function detach(bool)
  424.         LLW.C0 = CFrame.new(0, 0, 0)
  425.         RLW.C0 = CFrame.new(0, 0, 0)
  426.         LAW.C0 = CFrame.new(0,0,0)
  427.         RAW.C0 = CFrame.new(0, 0, 0)
  428.         if bool then
  429.                 LLW.Part1 = nil
  430.                 RLW.Part1 = nil
  431.                 RAW.Part1 = nil
  432.                 LAW.Part1 = nil
  433.         end
  434. end
  435.  
  436. function attach()
  437.         RAW.Part1 = Rarm
  438.         LAW.Part1 = Larm
  439.         RLW.Part1 = Rleg
  440.         LLW.Part1 = Lleg
  441. end
  442.  
  443. function normal()
  444.         neck.C0 = necko
  445.         RAW.C0 = RAWStand
  446.         LAW.C0 = LAWStand
  447.         RLW.C0 = RLWStand
  448.         LLW.C0 = LLWStand
  449.         RAW.C1 = CFrame.new(0, 0.5, 0)
  450.         LAW.C1 = CFrame.new(0, 0.5, 0)
  451.         RLW.C1 = CFrame.new(0, 0.8, 0)
  452.         LLW.C1 = CFrame.new(0, 0.8, 0)
  453.         HW.C0 = HWStand
  454. end
  455.  
  456. function idleanim()
  457.         attach()
  458.         for i = 0, 10, 10/22 do
  459.                 RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  460.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  461.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  462.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  463.                 neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  464.                 if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  465.                 wait()
  466.         end
  467.         wait()
  468.         for i = 10, 0, -10/29 do
  469.                 RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  470.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  471.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  472.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  473.                 neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  474.                 if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  475.                 wait()
  476.         end
  477.         normal()
  478. end
  479.  
  480. function runanim()
  481.         RLW.Part1 = nil
  482.         LLW.Part1 = nil
  483. end
  484.  
  485. coroutine.resume(coroutine.create(function()
  486.         while true do
  487.                 wait()
  488.                 if selected and Able == true and RestingAnim == false then
  489.                         if torso.Velocity.magnitude < 2 then
  490.                                 idleanim()
  491.                                 wait()
  492.                         else
  493.                                 runanim()
  494.                                 wait()
  495.                         end
  496.                 end
  497.         end
  498. end))
  499.  
  500. function selectanim()
  501.         if RestingAnim == false and Able == true then
  502.         local ah = CFrame.Angles(0, 0, math.rad(90))
  503.         RAW.Part1 = Rarm
  504.         for i = 0, 270, 270/5 do
  505.                 RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  506.                 neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  507.                 wait()
  508.         end
  509.         HW.C0 = ah
  510.         HW.Part1 = handle
  511.         TH.Part1 = nil
  512.         PlaySound(equip)
  513.         for i = 270, 70, -200/13 do
  514.                 RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  515.                 neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  516.                 wait()
  517.         end
  518.         attach()
  519.         for i = 70, 120, 50/8 do
  520.                 local asd = i-70
  521.                 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))
  522.                 LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  523.                 HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  524.                 neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  525.                 RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  526.                 LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  527.                 wait()
  528.         end
  529.         if RAWStand == nil then
  530.                 RAWStand = RAW.C0
  531.                 LAWStand = LAW.C0
  532.                 RLWStand = RLW.C0
  533.                 LLWStand = LLW.C0
  534.                 HWStand = HW.C0
  535.         end
  536.         normal()
  537.         end
  538. end
  539.  
  540. function deselanim()
  541.         if RestingAnim == false and Able == true then
  542.         local ah = CFrame.Angles(0, 0, math.rad(90))
  543.         for i = 120, 70, -50/8 do
  544.                 local asd = i-70
  545.                 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))
  546.                 LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  547.                 HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  548.                 neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  549.                 RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  550.                 LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  551.                 wait()
  552.         end
  553.         LLW.Part1 = nil
  554.         RLW.Part1 = nil
  555.         LAW.Part1 = nil
  556.         for i = 70, 270, 200/13 do
  557.                 RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  558.                 neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  559.                 wait()
  560.         end
  561.         HW.C0 = ah
  562.         HW.Part1 = nil
  563.         TH.Part1 = handle
  564.         for i = 270, 0, -270/6 do
  565.                 RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  566.                 neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  567.                 wait()
  568.         end
  569.         neck.C0 = necko
  570.         detach(true)
  571.         end
  572. end
  573.  
  574. function smash(mouse)
  575.         attach()
  576.         local mouseHit = mouse
  577.         local Orig = torso.CFrame
  578.         local bg = Add.BG(torso)
  579.         local bp = Add.BP(torso)
  580.         bp.position = Orig.p
  581.         local CF = ComputePos(Orig.p, mouseHit)
  582.         local CF2 = CF
  583.         bg.cframe = CF2
  584.         PlaySound(slash)
  585.         for i = 0, 1, Prop.AS*1.1 do
  586.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
  587.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
  588.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
  589.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
  590.                 HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
  591.                 neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
  592.                 wait()
  593.         end
  594.         bp.position = CF * CFrame.new(0, 0, -1.1).p
  595.         StartEffect(maintip)
  596.         Hurt = true
  597.         for i = 0, 1, Prop.AS*1.5 do
  598.                 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)
  599.                 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)
  600.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
  601.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
  602.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
  603.                 neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
  604.                 wait()
  605.         end
  606.         Hurt = false
  607.         EndEffect()
  608.         PlaySound(smashsound)
  609.         bp.position = CF * CFrame.new(0, 0, -1.9).p
  610.         for i = 0, 1, Prop.AS do
  611.                 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)
  612.                 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)
  613.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
  614.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
  615.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
  616.                 neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
  617.                 wait()
  618.         end
  619.         normal()
  620.         bg:remove()
  621.         bp:remove()
  622. end
  623.  
  624. function swing(mouse)
  625.         attach()
  626.         local mouseHit = mouse
  627.         local Orig = torso.CFrame
  628.         local bg = Add.BG(torso)
  629.         local bp = Add.BP(torso)
  630.         bp.position = Orig.p
  631.         local CF = ComputePos(Orig.p, mouseHit)
  632.         local CF2 = CF
  633.         bg.cframe = CF2
  634.         PlaySound(slash)
  635.         for i = 0, 1, Prop.AS*1.5 do
  636.                 RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
  637.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
  638.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
  639.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
  640.                 HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
  641.                 neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
  642.                 bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
  643.                 wait()
  644.         end
  645.         Hurt = true
  646.         StartEffect(maintip)
  647.         for i = 0, 1, Prop.AS*1.3 do
  648.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
  649.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
  650.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
  651.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
  652.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
  653.                 neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
  654.                 bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
  655.                 wait()
  656.         end
  657.         EndEffect()
  658.         Hurt = false
  659.         for i = 0, 1, Prop.AS*0.8 do
  660.                 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)
  661.                 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)
  662.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
  663.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  664.                 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)
  665.                 neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
  666.                 bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
  667.                 wait()
  668.         end
  669.         normal()
  670.         bg:remove()
  671.         bp:remove()
  672. end
  673.  
  674. function stab(mouse)
  675.         attach()
  676.         local mouseHit = mouse
  677.         local Orig = torso.CFrame
  678.         local bg = Add.BG(torso)
  679.         local bp = Add.BP(torso)
  680.         bp.position = Orig.p
  681.         local CF = ComputePos(Orig.p, mouseHit)
  682.         local CF2 = CF
  683.         bg.cframe = CF2
  684.         PlaySound(slash)
  685.         for i = 0, 1, Prop.AS do
  686.                 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)
  687.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
  688.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
  689.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
  690.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
  691.                 neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
  692.                 bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
  693.                 wait()
  694.         end
  695.         StartEffect(maintip)
  696.         Hurt = true
  697.         bp.position = CF * CFrame.new(0, 0, -0.6).p
  698.         for i = 0, 1, Prop.AS*1.5 do
  699.                 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)
  700.                 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)
  701.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
  702.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
  703.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
  704.                 neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
  705.                 bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
  706.                 wait()
  707.         end
  708.         Hurt = false
  709.         EndEffect()
  710.         bp.position = CF.p
  711.         for i = 0, 1, Prop.AS*1.1 do
  712.                 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)
  713.                 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)
  714.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
  715.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
  716.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
  717.                 neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
  718.                 bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
  719.                 wait()
  720.         end
  721.         normal()
  722.         bg:remove()
  723.         bp:remove()
  724. end
  725.  
  726. function epicsmashfunc(hit)
  727.         local ch = hit.Parent
  728.         local h = getHumanoid(ch)
  729.         local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
  730.         return h, t, head
  731. end
  732.  
  733. function epicsmash(mouse)
  734.         if Prop.Rage >= 50 then
  735.         attach()
  736.         local mouseHit = mouse
  737.         local Orig = torso.CFrame
  738.         local bg = Add.BG(torso)
  739.         local bp = Add.BP(torso)
  740.         bp.position = Orig.p
  741.         local CF = ComputePos(Orig.p, mouseHit)
  742.         bg.cframe = CF
  743.         local hu, to, head = nil, nil, nil
  744.         local Epic = true
  745.         local conn = Lleg.Touched:connect(function(hit)
  746.                 if Epic then
  747.                         hu, to, head = epicsmashfunc(hit)
  748.                         if hu and to and head then Epic = false end
  749.                 end
  750.         end)
  751.         PlaySound(slash)
  752.         for i = 0, 1, 0.12 do
  753.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
  754.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
  755.                 RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
  756.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
  757.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
  758.                 neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
  759.                 bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
  760.                 wait()
  761.         end
  762.         conn:disconnect()
  763.         if hu and to and head then
  764.                 Prop.Rage = Prop.Rage - 50
  765.                 hu.PlatformStand = true
  766.                 local bg2 = Add.BG(to)
  767.                 bg2.P = 6000
  768.                 bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
  769.                 local bp2 = Add.BP(to)
  770.                 bp2.position = CF * CFrame.new(-1, -4, -4).p
  771.                 bp2.P = 5000
  772.                 wait(0.1)
  773.                 for i = 0, 1, 0.045 do
  774.                         RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
  775.                         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)
  776.                         RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  777.                         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)
  778.                         HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  779.                         neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
  780.                         bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
  781.                         wait()
  782.                 end
  783.                 PlaySound(slash)
  784.                 bp2:remove()
  785.                 bg2:remove()
  786.                 wait(0.2)
  787.                 StartEffect(maintip)
  788.                 for i = 0, 1, 0.1 do
  789.                         RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
  790.                         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)
  791.                         RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  792.                         LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  793.                         HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
  794.                         neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
  795.                         bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
  796.                         wait()
  797.                 end
  798.                 coroutine.resume(coroutine.create(function()
  799.                         local frr = Cam.CoordinateFrame
  800.                         for i = 1, math.random(3,6) do
  801.                                 wait()
  802.                                 Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
  803.                         end
  804.                 end))
  805.                 PlaySound(smashsound)
  806.                 EndEffect()
  807.                 local pos = head.Position
  808.                 if (pos - maintip.Position).magnitude < 2 then
  809.                 damage(hu, head, 0.3, hu.Health, hu.Health)
  810.                 head:remove()
  811.                 PlaySound(hitsound)
  812.                 for i = 1, math.random(7, 17) do
  813.                         local hmm = math.random(1,6)
  814.                         if hmm < 6 then
  815.                                 local cols = {"Bright red", "Really red"}
  816.                                 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)
  817.                                 p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  818.                                 p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  819.                                 p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  820.                         else
  821.                                 local cols = {"Institutional white", "White"}
  822.                                 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)
  823.                                 p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  824.                                 p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  825.                                 p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  826.                         end
  827.                 end
  828.                 end
  829.                 for i = 0, 1, 0.06 do
  830.                         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))
  831.                         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)
  832.                         RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  833.                         LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  834.                         HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
  835.                         neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
  836.                         bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
  837.                         wait()
  838.                 end
  839.         else
  840.                 for i = 0, 1, 0.08 do
  841.                         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)
  842.                         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)
  843.                         RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  844.                         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)
  845.                         HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  846.                         neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
  847.                         bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
  848.                         wait()
  849.                 end
  850.                 bg:remove()
  851.                 bp:remove()
  852.                 normal()
  853.         end
  854.         normal()
  855.         bg:remove()
  856.         bp:remove()
  857.         end
  858. end
  859.  
  860.  
  861. function shockwave(mouse)
  862.         local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
  863.         if Prop.Rage >= 100000 and t then
  864.         Prop.Rage = Prop.Rage - 1
  865.         attach()
  866.         local mouseHit = mouse
  867.         local Orig = torso.CFrame
  868.         local bg = Add.BG(torso)
  869.         local bp = Add.BP(torso)
  870.         bp.position = Orig.p
  871.         bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  872.         bp.P = 5000
  873.         local CF = ComputePos(Orig.p, mouseHit)
  874.         bg.cframe = CF
  875.         PlaySound(charge)
  876.         for i = 0, 1, 0.07 do
  877.                 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)
  878.                 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)
  879.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
  880.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  881.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  882.                 neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  883.                 bg.cframe = CF * CFrame.Angles(0, 0, 0)
  884.                 bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
  885.                 wait()
  886.         end
  887.         for i = 0, 1, 0.04 do
  888.                 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)
  889.                 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)
  890.                 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)
  891.                 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)
  892.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
  893.                 neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
  894.                 bg.cframe = CF * CFrame.Angles(0, 0, 0)
  895.                 bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
  896.                 wait()
  897.         end
  898.         bp.P = 12001
  899.         wait(0.1)
  900.         StartEffect(maintip)
  901.         PlaySound(slash)
  902.         for i = 0, 1, 0.1 do
  903.                 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)
  904.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
  905.                 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)
  906.                 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)
  907.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
  908.                 neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
  909.                 bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
  910.                 bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
  911.                 wait()
  912.         end
  913.         coroutine.resume(coroutine.create(function()
  914.                 local frr = Cam.CoordinateFrame
  915.                 for i = 1, math.random(10,16) do
  916.                         wait()
  917.                         Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  918.                 end
  919.         end))
  920.         PlaySound(smashsound)
  921.         local pos = CF * CFrame.new(-2, -3, -3).p
  922.         EndEffect()
  923.         local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  924.         p.CFrame = CFrame.new(pos)
  925.         local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  926.         p2.CFrame = CFrame.new(pos)
  927.         local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  928.         p3.CFrame = CFrame.new(pos)
  929.         local m3 = Instance.new("SpecialMesh",p3)
  930.         m3.MeshType = "Sphere"
  931.         PlaySound(boom)
  932.         local m2 = Instance.new("CylinderMesh",p2)
  933.         local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
  934.         local tab = {}
  935.         coroutine.resume(coroutine.create(function()
  936.                 for x = 0, 1.04, 0.04 do
  937.                         wait()
  938.                         local thing = 33*x
  939.                         m.Scale = Vector3.new(21*x, 5*x, 21*x)
  940.                         m2.Scale = Vector3.new(thing, 1, thing)
  941.                         m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
  942.                         p.Transparency = x
  943.                         p2.Transparency = x
  944.                         p3.Transparency = x
  945.                         for i, v in pairs(workspace:children()) do
  946.                                 local h = getHumanoid(v)
  947.                                 local to = v:findFirstChild("Torso")
  948.                                 if h ~= nil and to ~= nil and find(tab, v) == nil then
  949.                                         if (to.Position - pos).magnitude < (thing/2) then
  950.                                                 damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
  951.                                                 to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
  952.                                                 to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  953.                                                 h.PlatformStand = true
  954.                                                 table.insert(tab, v)
  955.                                                 coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  956.                                         end
  957.                                 end
  958.                         end
  959.                 end
  960.                 p:remove()
  961.                 p2:remove()
  962.                 p3:remove()
  963.         end))
  964.         wait(0.8)
  965.         for i = 0, 1, Prop.AS*0.8 do
  966.                 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)
  967.                 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)
  968.                 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)
  969.                 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)
  970.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
  971.                 neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
  972.                 bg.cframe = CF * CFrame.Angles(0, 0, 0)
  973.                 bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
  974.                 wait()
  975.         end
  976.         normal()
  977.         bg:remove()
  978.         bp:remove()
  979.         end
  980. end
  981.  
  982. function flipsmash(mouse)
  983.         local Orig = torso.CFrame
  984.         local mouseHit = mouse
  985.         local CF = ComputePos(Orig.p, mouseHit)
  986.         local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
  987.         local ahp = (CF * CFrame.new(0, 0, -14.5))
  988.         local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
  989.         if t and t2 and Prop.Rage >= 90 then
  990.         Prop.Rage = Prop.Rage - 90
  991.         attach()
  992.         local bg = Add.BG(torso)
  993.         local bp = Add.BP(torso)
  994.         bp.position = Orig.p
  995.         bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  996.         bg.cframe = CF
  997.         local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
  998.         for i = 0, 1, 0.08 do
  999.                 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)
  1000.                 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)
  1001.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
  1002.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
  1003.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  1004.                 neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  1005.                 bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1006.                 bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
  1007.                 wait()
  1008.         end
  1009.         wait(0.15)
  1010.         hum.PlatformStand = true
  1011.         for i = 0, 1, 0.13 do
  1012.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
  1013.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
  1014.                 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)
  1015.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
  1016.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
  1017.                 neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
  1018.                 bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
  1019.                 bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1020.                 wait()
  1021.         end
  1022.         PlaySound(slash)
  1023.         for i = 0, 1, 0.13 do
  1024.                 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)
  1025.                 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)
  1026.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
  1027.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
  1028.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
  1029.                 neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
  1030.                 bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
  1031.                 bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1032.                 wait()
  1033.         end
  1034.         StartEffect(maintip)
  1035.         PlaySound(slash)
  1036.         for i = 0, 1, 0.06 do
  1037.                 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)
  1038.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
  1039.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
  1040.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
  1041.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
  1042.                 neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
  1043.                 bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
  1044.                 bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1045.                 wait()
  1046.         end
  1047.         coroutine.resume(coroutine.create(function()
  1048.                 local frr = Cam.CoordinateFrame
  1049.                 for i = 1, math.random(13,20) do
  1050.                         wait()
  1051.                         Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  1052.                 end
  1053.         end))
  1054.         PlaySound(smashsound)
  1055.         PlaySound(boomboom)
  1056.         EndEffect()
  1057.         local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
  1058.         local siz = math.random(65,115)/10
  1059.         local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
  1060.         partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
  1061.         local decc = Instance.new("Decal",partie)
  1062.         decc.Shiny = 0
  1063.         decc.Specular = 0
  1064.         decc.Texture = "http://www.roblox.com/asset/?id=49173398"
  1065.         decc.Face = "Top"
  1066.         local count = 0
  1067.         for i, v in pairs(workspace:children()) do
  1068.                 local h = getHumanoid(v)
  1069.                 local to = v:findFirstChild("Torso")
  1070.                 if h ~= nil and to ~= nil then
  1071.                         if (to.Position - poo).magnitude < 15 then
  1072.                                 count = count + 1
  1073.                                 local Maxhp = h.MaxHealth
  1074.                                 if Maxhp > 8000 then Maxhp = 8000 end
  1075.                                 damage(h, to, 0.5, 0, Maxhp+5)
  1076.                                 to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
  1077.                                 to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
  1078.                                 to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1079.                                 h.PlatformStand = true
  1080.                                 coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  1081.                                 if count >= 2 then break end
  1082.                         end
  1083.                 end
  1084.         end
  1085.         coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
  1086.         wait(0.6)
  1087.         for i = 0, 1, 0.06 do
  1088.                 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)
  1089.                 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)
  1090.                 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)
  1091.                 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)
  1092.                 HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
  1093.                 neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
  1094.                 bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1095.                 bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
  1096.                 wait()
  1097.         end
  1098.         hum.PlatformStand = false
  1099.         normal()
  1100.         bg:remove()
  1101.         bp:remove()
  1102.         end
  1103. end
  1104.  
  1105. function spin(mouse)
  1106.         attach()
  1107.         local mouseHit = mouse
  1108.         local Orig = torso.CFrame
  1109.         local CF = ComputePos(Orig.p, mouseHit)
  1110.         local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
  1111.         if t then
  1112.         local bg = Add.BG(torso)
  1113.         local bp = Add.BP(torso)
  1114.         bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1115.         bp.position = Orig.p
  1116.         bg.cframe = CF
  1117.         PlaySound(slash)
  1118.         for i = 0, 1, 0.11 do
  1119.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
  1120.                 RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
  1121.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
  1122.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
  1123.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
  1124.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
  1125.                 neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
  1126.                 bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1127.                 wait()
  1128.         end
  1129.         local posg = CF * CFrame.new(0, -0.6, -4)
  1130.         PlaySound(hitsound, 0.9)
  1131.         for i = 0, 1, 0.13 do
  1132.                 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)
  1133.                 RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
  1134.                 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)
  1135.                 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)
  1136.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  1137.                 HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
  1138.                 neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
  1139.                 bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1140.                 bp.position = CF * CFrame.new(0, 1*i, -2*i).p
  1141.                 wait()
  1142.         end
  1143.         hum.PlatformStand = true
  1144.         bg.Parent = handle
  1145.         bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
  1146.         bp.Parent = handle
  1147.         bp.position = posg.p
  1148.         StartEffect(Lleg)
  1149.         Leghurt = true
  1150.         PlaySound(slash)
  1151.         for i = 0, 1, 0.09 do
  1152.                 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)
  1153.                 RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
  1154.                 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)
  1155.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
  1156.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
  1157.                 HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
  1158.                 neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
  1159.                 bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
  1160.                 wait()
  1161.         end
  1162.         for i = 0, 1, 0.055 do
  1163.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
  1164.                 RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
  1165.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
  1166.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
  1167.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
  1168.                 HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  1169.                 neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
  1170.                 bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
  1171.                 wait()
  1172.         end
  1173.         EndEffect()
  1174.         Leghurt = false
  1175.         for i = 0, 1, 0.12 do
  1176.                 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)
  1177.                 RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
  1178.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
  1179.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
  1180.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
  1181.                 HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  1182.                 neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  1183.                 bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
  1184.                 wait()
  1185.         end
  1186.         bg.Parent = torso
  1187.         bp.Parent = torso
  1188.         bg.cframe = CF
  1189.         for i = 0, 1, 0.14 do
  1190.                 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)
  1191.                 RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
  1192.                 LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
  1193.                 RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
  1194.                 LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
  1195.                 HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
  1196.                 neck.C0 = necko * CFrame.Angles(0, 0, 0)
  1197.                 bp.position = CF * CFrame.new(0, 0, -2+1*i).p
  1198.                 bg.cframe = CF
  1199.                 wait()
  1200.         end
  1201.         hum.PlatformStand = false
  1202.         normal()
  1203.         bg:remove()
  1204.         bp:remove()
  1205.         end
  1206. end
  1207.  
  1208. function rest()
  1209.         local Orig = torso.CFrame
  1210.         local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
  1211.         local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
  1212.         if t then
  1213.         attach()
  1214.         local bg = Add.BG(torso)
  1215.         local bp = Add.BP(torso)
  1216.         bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1217.         bp.position = CF.p
  1218.         bg.cframe = CF
  1219.         local cen = CF * CFrame.new(0, -2.5, 0)
  1220.         RestingAnim = true
  1221.         hum.PlatformStand = true
  1222.         local standup = function()
  1223.                 Resting = false
  1224.                 bp.Parent = torso
  1225.                 cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
  1226.                 for i = 1, 0, -0.12 do
  1227.                         RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  1228.                         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)
  1229.                         RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
  1230.                         LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
  1231.                         neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  1232.                         HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  1233.                         bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  1234.                         bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  1235.                         wait()
  1236.                 end
  1237.                 for i = 1, 0, -0.17 do
  1238.                         RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  1239.                         LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  1240.                         RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  1241.                         LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  1242.                         neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  1243.                         HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  1244.                         bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  1245.                         bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  1246.                         wait()
  1247.                 end
  1248.                 hum.PlatformStand = false
  1249.                 bg:remove()
  1250.                 bp:remove()
  1251.                 normal()
  1252.                 Able = true
  1253.                 RestingAnim = false
  1254.         end
  1255.         local connec = hum.Changed:connect(function()
  1256.                 if hum.PlatformStand == false then
  1257.                         coroutine.resume(coroutine.create(function()
  1258.                                 standup()
  1259.                         end))
  1260.                         standup = nil
  1261.                         connec:disconnect()
  1262.                 end
  1263.         end)
  1264.         local lasthp = hum.Health
  1265.         local conn = hum.HealthChanged:connect(function(hp)
  1266.                 if lasthp - hp > 0.8 then
  1267.                         hum.PlatformStand = false
  1268.                         conn:disconnect()
  1269.                 end
  1270.                 lasthp = hp
  1271.         end)
  1272.         coroutine.resume(coroutine.create(function()
  1273.                 repeat wait() until Resting
  1274.                 while Resting do
  1275.                         wait()
  1276.                         if torso.Velocity.magnitude > 4 then
  1277.                                 hum.PlatformStand = false
  1278.                                 break
  1279.                         end
  1280.                 end
  1281.         end))
  1282.         for i = 0, 1, 0.1 do
  1283.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  1284.                 LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  1285.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
  1286.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
  1287.                 neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  1288.                 HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  1289.                 bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  1290.                 bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  1291.                 wait()
  1292.         end
  1293.         for i = 0, 1, 0.07 do
  1294.                 RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  1295.                 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)
  1296.                 RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
  1297.                 LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
  1298.                 neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  1299.                 HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  1300.                 bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  1301.                 bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  1302.                 wait()
  1303.         end
  1304.         Resting = true
  1305.         coroutine.resume(coroutine.create(function()
  1306.                 wait(0.4)
  1307.                 bp.Parent = nil
  1308.         end))
  1309.         coroutine.resume(coroutine.create(function()
  1310.                 while Resting and selected do
  1311.                         wait(math.random(350,800)/1000)
  1312.                         hum.Health = hum.Health + math.random(1,2)
  1313.                         Prop.Rage = Prop.Rage + 1
  1314.                 end
  1315.                 hum.PlatformStand = false
  1316.         end))
  1317.         end
  1318. end
  1319.  
  1320. function select(mouse)
  1321.         mouse.Icon = MouseIc
  1322.         selectanim()
  1323.         selected = true
  1324.         mouse.Button1Down:connect(function()
  1325.                 if Able and RestingAnim == false and hum.Sit == false then
  1326.                         Able = false
  1327.                         swing(mouse.Hit.p)
  1328.                         Able = true
  1329.                 end
  1330.         end)
  1331.         mouse.Button1Down:connect(function()
  1332.                 mouse.Icon = MouseDo
  1333.                 mouse.Button1Up:wait()
  1334.                 mouse.Icon = MouseIc
  1335.         end)
  1336.         mouse.KeyDown:connect(function(key)
  1337.                 key = key:lower()
  1338.                 if Able and RestingAnim == false and hum.Sit == false then
  1339.                 if key == "q" then
  1340.                         Able = false
  1341.                         smash(mouse.Hit.p)
  1342.                         Able = true
  1343.                 elseif key == "e" then
  1344.                         Able = false
  1345.                         swing(mouse.Hit.p)
  1346.                         Able = true
  1347.                 elseif key == "r" then
  1348.                         Able = false
  1349.                         stab(mouse.Hit.p)
  1350.                         Able = true
  1351.                 elseif key == "f" then
  1352.                         Able = false
  1353.                         epicsmash(mouse.Hit.p)
  1354.                         Able = true
  1355.                 elseif key == "z" then
  1356.                         Able = false
  1357.                         shockwave(mouse.Hit.p)
  1358.                         Able = true
  1359.                 elseif key == "x" then
  1360.                         Able = false
  1361.                         flipsmash(mouse.Hit.p)
  1362.                         Able = true
  1363.                 elseif key == "t" then
  1364.                         Able = false
  1365.                         spin(mouse.Hit.p)
  1366.                         Able = true
  1367.                 end
  1368.                 end
  1369.                 if Able then
  1370.                         if key == "g" and AbleG then
  1371.                                 AbleG = false
  1372.                                 if Resting == true then
  1373.                                         Resting = false
  1374.                                 else
  1375.                                         rest()
  1376.                                 end
  1377.                                 wait(0.8)
  1378.                                 AbleG = true
  1379.                         end
  1380.                 end
  1381.         end)
  1382. end
  1383.  
  1384. function deselect(mouse)
  1385.         selected = false
  1386.         deselanim()
  1387. end
  1388. bin.Selected:connect(select)
  1389. bin.Deselected:connect(deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement