Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Wings Wings Gifted by Made Rosemarijohn2, Local Script!
- --Space Two Time
- --Down Press Q
- --Wings Spin Press A Two Time
- --Wings Spin Press D Two Time
- --Angel Wings Gifted Made by Rosemarijohn2, Local Script!
- --Space Two Time
- --Down Press Q
- --Wings Spin Press A Two Time
- --Wings Spin Press D Two Time
- script.Parent = nil
- function fly()
- for i,v in pairs(script:GetChildren()) do
- pcall(function() v.Value = "" end)
- game:GetService("Debris"):AddItem(v,.1)
- end
- function weld(p0,p1,c0,c1,par)
- local w = Instance.new("Weld",p0 or par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- return w
- end
- local motors = {}
- function motor(p0,p1,c0,c1,des,vel,par)
- local w = Instance.new("Motor6D",p0 or par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- w.MaxVelocity = tonumber(vel) or .05
- w.DesiredAngle = tonumber(des) or 0
- return w
- end
- function lerp(a,b,c)
- return a+(b-a)*c
- end
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- function ccomplerp(c1,c2,al)
- local com1 = {c1:components()}
- local com2 = {c2:components()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(unpack(com1))
- end
- function tickwave(time,length,offset)
- return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
- end
- function invcol(c)
- c = c.Color
- return BrickColor.new(Color3.new(1,1,1))
- end
- local oc = oc or function(...) return ... end
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local tor = char.Torso
- local hum = char.Humanoid
- hum.PlatformStand = false
- pcall(function()
- char.Wings:Destroy()
- end)
- pcall(function()
- char.Angel:Destroy() -- hat
- end)
- local mod = Instance.new("Model",char)
- mod.Name = "Wings"
- local special = {
- Luperds = {"Really black","Really black",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
- }
- local topcolor = invcol(char.Head.BrickColor)
- local feacolor = BrickColor.new("White")
- local ptrans = 0
- local pref = 0
- local fire = false
- local fmcol = Color3.new()
- local fscol = Color3.new()
- local spec = special[plr.Name:lower()]
- if spec then
- 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]
- end
- local part = Instance.new("Part")
- part.FormFactor = "Custom"
- part.Size = Vector3.new(.2,.2,.2)
- part.TopSurface,part.BottomSurface = 0,0
- part.CanCollide = false
- part.BrickColor = topcolor
- part.Transparency = ptrans
- part.Reflectance = pref
- local ef = Instance.new("Fire",fire and part or nil)
- ef.Size = .15
- ef.Color = fmcol or Color3.new(2,2,2)
- ef.SecondaryColor = fscol or Color3.new(0,0,0)
- part:BreakJoints()
- function newpart()
- local clone = part:Clone()
- clone.Parent = mod
- clone:BreakJoints()
- return clone
- end
- local feath = newpart()
- feath.BrickColor = feacolor
- feath.Transparency = 0
- Instance.new("SpecialMesh",feath).MeshType = "Sphere"
- function newfeather()
- local clone = feath:Clone()
- clone.Parent = mod
- clone:BreakJoints()
- return clone
- end
- ---------- RIGHT WING
- local r1 = newpart()
- r1.Size = Vector3.new(.3,1.5,.3)*1.2
- 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)
- local r2 = newpart()
- r2.Size = Vector3.new(.4,1.8,.4)*1.2
- 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)
- local r3 = newpart()
- r3.Size = Vector3.new(.3,2.2,.3)*1.2
- 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)
- local r4 = newpart()
- r4.Size = Vector3.new(.25,1.2,.25)*1.2
- 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)
- local feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,3,.3)
- weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,2.3,.3)
- weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.35,2.2,.25)
- weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
- local rf3 = {}
- for i=0,7 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2,.35)
- 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)))
- end
- local rf2 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2-i*.08,.3)
- 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)))
- end
- local rf1 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.37,1.65-i*.06,.25)
- 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)))
- end
- ---------- LEFT WING
- local l1 = newpart()
- l1.Size = Vector3.new(.3,1.5,.3)*1.2
- 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)
- local l2 = newpart()
- l2.Size = Vector3.new(.4,1.8,.4)*1.2
- 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)
- local l3 = newpart()
- l3.Size = Vector3.new(.3,2.2,.3)*1.2
- 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)
- local l4 = newpart()
- l4.Size = Vector3.new(.25,1.2,.25)*1.2
- 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)
- local feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,3,.3)
- weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.4,2.3,.3)
- weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.35,2.2,.25)
- weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
- local lf3 = {}
- for i=0,7 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2,.35)
- 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)))
- end
- local lf2 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.45,2.2-i*.08,.3)
- 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)))
- end
- local lf1 = {}
- for i=0,6 do
- feather = newfeather()
- feather.Mesh.Scale = Vector3.new(1,1,1)
- feather.Size = Vector3.new(.37,1.65-i*.06,.25)
- 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)))
- end
- local rwing = {rm1,rm2,rm3,rm4}
- local lwing = {lm1,lm2,lm3,lm4}
- local oc0 = {}
- for i,v in pairs(rwing) do
- oc0[v] = v.C0
- end
- for i,v in pairs(lwing) do
- oc0[v] = v.C0
- end
- function gotResized()
- if lastsize then
- if tor.Size == lastsize then return end -- This shouldn't happen?
- local scaleVec = tor.Size/lastsize
- for i,v in pairs(oc0) do
- oc0[i] = v-v.p+scaleVec*v.p
- end
- lastsize = tor.Size
- end
- lastsize = tor.Size
- end
- tor.Changed:connect(function(p)
- if p == "Size" then
- gotResized()
- end
- end)
- gotResized()
- local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
- local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
- local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
- local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
- local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
- local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
- function setwings(tab,time)
- time = time or 10
- for i=1,4 do
- rwing[i].DesiredAngle = tab[i]
- lwing[i].DesiredAngle = tab[i]
- rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
- lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
- local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
- local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
- end
- for i,v in pairs(rf1) do
- v.DesiredAngle = tab[9]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf1) do
- v.DesiredAngle = tab[9]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(rf2) do
- v.DesiredAngle = tab[10]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf2) do
- v.DesiredAngle = tab[10]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(rf3) do
- v.DesiredAngle = tab[11]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- for i,v in pairs(lf3) do
- v.DesiredAngle = tab[11]
- v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
- end
- end
- setwings(outhigh,1)
- flying = false
- moving = false
- for i,v in pairs(tor:GetChildren()) do
- if v.ClassName:lower():match("body") then
- v:Destroy()
- end
- end
- local ctor = tor:Clone()
- ctor:ClearAllChildren()
- ctor.Name = "cTorso"
- ctor.Transparency = 1
- ctor.CanCollide = false
- ctor.FormFactor = "Custom"
- ctor.Size = Vector3.new(.2,.2,.2)
- ctor.Parent = mod
- weld(tor,ctor)
- local bg = Instance.new("BodyGyro",ctor)
- bg.maxTorque = Vector3.new()
- bg.P = 15000
- bg.D = 1000
- local bv = Instance.new("BodyVelocity",ctor)
- bv.maxForce = Vector3.new()
- bv.P = 15000
- vel = Vector3.new()
- cf = CFrame.new()
- flspd =0
- keysdown = {}
- keypressed = {}
- ktime = {}
- descendtimer = 0
- jumptime = tick()
- hum.Jumping:connect(function()
- jumptime = tick()
- end)
- cam = workspace.CurrentCamera
- kd = plr:GetMouse().KeyDown:connect(oc(function(key)
- keysdown[key] = true
- keypressed[key] = true
- if key == "q" then
- descendtimer = tick()
- elseif key == " " and not hum.Jump then
- jumptime = tick()
- elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
- reqrotx = key == "a" and math.pi*2 or -math.pi*2
- end
- ktime[key] = tick()
- end))
- ku = plr:GetMouse().KeyUp:connect(function(key)
- keysdown[key] = false
- if key == " " then
- descendtimer = tick()
- end
- end)
- function mid(a,b,c)
- return math.max(a,math.min(b,c or -a))
- end
- function bn(a)
- return a and 1 or 0
- end
- function gm(tar)
- local m = 0
- for i,v in pairs(tar:GetChildren()) do
- if v:IsA("BasePart") then
- m = m + v:GetMass()
- end
- m = m + gm(v)
- end
- return m
- end
- reqrotx = 0
- local grav = 196.2
- local con
- con = game:GetService("RunService").Stepped:connect(oc(function()
- --[[if not mod:IsDescendantOf(workspace) then
- pcall(function() kd:disconnect() end)
- pcall(function() ku:disconnect() end)
- bg:Destroy()
- bv:Destroy()
- con:disconnect()
- script:Destroy()
- return
- end]]
- local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
- local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
- if flying then
- local lfldir = fldir
- fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
- local lmoving = moving
- moving = fldir.magnitude > .1
- if lmoving and not moving then
- idledir = lfldir*Vector3.new(1,0,1)
- descendtimer = tick()
- end
- local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
- if moving and keysdown["0"] and lmoving then
- fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
- end
- local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
- local descending = (not moving and keysdown["q"] and not keysdown[" "])
- cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
- local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
- hum.PlatformStand = true
- bg.maxTorque = Vector3.new(1,1,1)*9e5
- local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
- 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)
- reqrotx = reqrotx - reqrotx/10
- bv.maxForce = Vector3.new(1,1,1)*9e4*.5
- local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
- local ani = tickwave(1.5-anioff,1)
- 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)
- vel = moving and cf.lookVector*flspd or Vector3.new()
- 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))
- setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
- for i=1,4 do
- --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)
- 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)
- 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)
- end
- local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
- if hit and down.Y < -.85 and tick()-flystart > 1 then
- flying = false
- hum.PlatformStand = false
- tor.Velocity = Vector3.new()
- end
- else
- bg.maxTorque = Vector3.new()
- bv.maxForce = Vector3.new()
- local ani = tickwave(walking and .8 or 4.5,1)
- setwings(idle,10)
- local x,y,z = fspd/160,uspd/700,sspd/900
- for i=1,4 do
- 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)
- 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)
- end
- if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
- vel = Vector3.new(0,50,0)
- bv.velocity = vel
- idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
- cf = tor.CFrame * CFrame.Angles(-.01,0,0)
- tor.CFrame = cf
- bg.cframe = cf
- flystart = tick()
- flying = true
- end
- end
- keypressed = {}
- end))
- end fly()
- --Edit By Rosemarijohn2
- --War Hammer Gifted by Rosemarijohn2, Local Script!
- Ancor = game:GetService("Players")
- me = Ancor.LocalPlayer
- char = me.Character
- Modelname = "Warhammah"
- Toolname = "Warhammar"
- Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
- necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- selected = false
- effectOn = false
- Hurt = false
- Leghurt = false
- Deb = true
- LegDeb = true
- Able = true
- Resting = false
- RestingAnim = false
- AbleG = true
- Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
- Prop.AS = Prop.AS/300
- Cam = workspace.CurrentCamera
- ToolIcon = "http://www.roblox.com/asset/?id=49192762"
- MouseIc = "http://www.roblox.com/asset/?id=49192792"
- MouseDo = "http://www.roblox.com/asset/?id=49192819"
- Add = {
- Sphere = function(P)
- local m = Instance.new("SpecialMesh",P)
- m.MeshType = "Sphere"
- return m
- end,
- BF = function(P)
- local bf = Instance.new("BodyForce",P)
- bf.force = Vector3.new(0, P:GetMass()*187, 0)
- return bf
- end,
- BP = function(P)
- local bp = Instance.new("BodyPosition",P)
- bp.maxForce = Vector3.new(math.huge, 0, math.huge)
- bp.P = 14000
- return bp
- end,
- BG = function(P)
- local bg = Instance.new("BodyGyro",P)
- bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- bg.P = 14000
- return bg
- end,
- Mesh = function(P, ID, x, y, z)
- local m = Instance.new("SpecialMesh")
- m.MeshId = ID
- m.Scale = Vector3.new(x, y, z)
- m.Parent = P
- return m
- end,
- Sound = function(P, ID, vol, pitch)
- local s = Instance.new("Sound")
- s.SoundId = ID
- s.Volume = vol
- s.Pitch = pitch
- s.Parent = P
- return s
- end
- }
- function find(tab, arg)
- local ah = nil
- for i,v in pairs(tab) do
- if v == arg then
- ah = v
- end
- end
- return ah
- end
- function getAllParts(from)
- local t = {}
- function getParts(where)
- for i, v in pairs(where:children()) do
- if v:IsA("BasePart") then
- if v.Parent ~= char and v.Parent.Parent ~= char then
- table.insert(t, v)
- end
- end
- getParts(v)
- end
- end
- getParts(workspace)
- return t
- end
- function RayCast(pos1, pos2, maxDist, forward)
- local list = getAllParts(workspace)
- local pos0 = pos1
- for dist = 1, maxDist, forward do
- pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
- for _, v in pairs(list) do
- local pos3 = v.CFrame:pointToObjectSpace(pos0)
- local s = v.Size
- 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
- return pos0, v
- end
- end
- end
- return pos0, nil
- end
- function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
- local p = Instance.new("Part")
- p.formFactor = "Custom"
- p.Anchored = Anchor
- p.CanCollide = Collide
- p.Transparency = Tran
- p.Reflectance = Ref
- p.BrickColor = BrickColor.new(Color)
- for _, Surf in pairs(Surfaces) do
- p[Surf] = "Smooth"
- end
- p.Size = Vector3.new(X, Y, Z)
- if Break then
- p:BreakJoints()
- else p:MakeJoints() end
- p.Parent = Parent
- p.Locked = true
- return p
- end
- function Weld(p0, p1, x, y, z, a, b, c)
- local w = Instance.new("Weld")
- w.Parent = p0
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
- return w
- end
- function ComputePos(pos1, pos2)
- local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
- return CFrame.new(pos1, pos3)
- end
- function getHumanoid(c)
- local h = nil
- for i,v in pairs(c:children()) do
- if v:IsA("Humanoid") and c ~= char then
- if v.Health > 0 then
- h = v
- end
- end
- end
- return h
- end
- for i,v in pairs(char:children()) do
- if v.Name == Modelname then
- v:remove()
- end
- end
- pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
- Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
- Sc.Name = "RaigMeter"
- Fr = Instance.new("Frame",Sc)
- Fr.Size = UDim2.new(0, 250, 0, 28)
- Fr.Position = UDim2.new(0.5, -125, 0, 5)
- Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
- Met = Instance.new("Frame", Fr)
- Met.Size = UDim2.new(1, -10, 1, -6)
- Met.Position = UDim2.new(0, 5, 0, 3)
- Met.BackgroundColor3 = Color3.new(0, 0, 0)
- Met.BorderSizePixel = 0
- Meter = Instance.new("ImageLabel", Met)
- Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
- Meter.Position = UDim2.new(0, 0, 0, 1)
- Meter.Image = "http://www.roblox.com/asset/?id=48965808"
- Meter.BorderSizePixel = 0
- Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
- Tx = Instance.new("TextLabel", Met)
- Tx.Size = UDim2.new(0, 0, 1, 0)
- Tx.Position = UDim2.new(0, 5, 0, 0)
- Tx.Text = Prop.Rage.." / "..Prop.MaxRage
- Tx.Font = "ArialBold"
- Tx.FontSize = "Size18"
- Tx.BackgroundTransparency = 1
- Tx.TextColor3 = Color3.new(1, 0, 0)
- Tx.TextXAlignment = "Left"
- laast = Prop.Rage
- coroutine.resume(coroutine.create(function()
- while true do
- wait()
- if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
- if laast ~= Prop.Rage then
- Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
- laast = Prop.Rage
- Tx.Text = Prop.Rage.." / "..Prop.MaxRage
- end
- end
- end))
- torso = char.Torso
- neck = torso.Neck
- hum = char.Humanoid
- Rarm = char["Right Arm"]
- Larm = char["Left Arm"]
- Rleg = char["Right Leg"]
- Lleg = char["Left Leg"]
- hc = Instance.new("Humanoid")
- hc.Health = 0
- hc.MaxHealth = 0
- slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
- hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
- charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
- boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
- smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
- boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
- equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
- function PlaySound(sound, pitch)
- local s = sound:clone()
- if pitch ~= nil then
- if tonumber(pitch) then
- s.Pitch = tonumber(pitch)
- end
- end
- s.Parent = torso
- s.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- s:remove()
- end))
- end
- Mo = Instance.new("Model")
- Mo.Name = Modelname
- RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
- LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
- RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
- LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
- RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
- LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
- RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
- LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
- HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
- HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
- HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
- TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
- RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
- handle = Part(Mo, false, false, 0, 0, "White", 0.4, 5, 0.4, true)
- handle.Name = "Handle"
- Instance.new("SpecialMesh",handle)
- maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
- Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
- DMGParts = {}
- for i = 0, 135, 45 do
- local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
- Instance.new("BlockMesh",tip)
- Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
- table.insert(DMGParts, tip)
- for a = -0.9, 0.9, 1.8 do
- for x = 0, math.pi, math.pi do
- local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
- local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
- w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
- w.C1 = CFrame.new(0, -1, 0)
- Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
- local trim = Part(Mo, false, false, 0, 0, "White", 0.67, 0.1, 0.5, true)
- local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
- w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
- w2.C1 = CFrame.new(0, -0.58, 0)
- end
- end
- end
- spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
- Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
- Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
- table.insert(DMGParts, spiketip)
- local handletip1 = Part(Mo, false, false, 0, 0.2, "White", 0.5, 0.5, 0.5, true)
- local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
- w1.C0 = CFrame.new(0, -2.6, 0)
- Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
- local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
- Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
- Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
- Mo.Parent = char
- TH.Part1 = handle
- function showdmg(dmg, p, pos)
- local mo = Instance.new("Model")
- mo.Name = dmg
- local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
- pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
- pa.Name = "Head"
- local hah = hc:clone()
- hah.Parent = mo
- local bp = Add.BP(pa)
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.position = p.Position + Vector3.new(0, 3+pos, 0)
- Add.BG(pa)
- coroutine.resume(coroutine.create(function()
- wait()
- mo.Parent = workspace
- wait(1.4)
- mo:remove()
- end))
- end
- function damage(hum, p, num, dm1, dm2)
- local dmg = math.random(dm1, dm2)
- hum.Health = hum.Health - dmg
- showdmg(dmg, p, num)
- return dmg
- end
- function brickdamage(hit)
- local h = getHumanoid(hit.Parent)
- if h ~= nil and Hurt and Deb then
- Deb = false
- local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
- PlaySound(hitsound)
- Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
- wait(0.3)
- Deb = true
- end
- end
- function legdamage(hit)
- local h = getHumanoid(hit.Parent)
- if h ~= nil and Leghurt and LegDeb then
- LegDeb = false
- local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
- PlaySound(hitsound)
- Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
- coroutine.resume(coroutine.create(function()
- local haha = math.random(1,3)
- if haha == 1 then
- h.PlatformStand = true
- wait()
- local ps = getAllParts(h.Parent)
- for i, v in pairs(ps) do
- if v.Anchored == false then
- v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
- v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
- end
- end
- wait(0.8)
- h.PlatformStand = false
- end
- end))
- wait(0.2)
- LegDeb = true
- end
- end
- for i, v in pairs({Rleg, Lleg}) do
- v.Touched:connect(legdamage)
- end
- for i,v in pairs(DMGParts) do
- v.Touched:connect(brickdamage)
- end
- if script.Parent.className ~= "HopperBin" then
- h = Instance.new("HopperBin",me.Backpack)
- h.Name = Toolname
- h.TextureId = ToolIcon
- script.Parent = h
- end
- bin = script.Parent
- function StartEffect(part)
- effectOn = true
- local lastPoint = part.Position
- coroutine.resume(coroutine.create(function()
- while effectOn do
- wait()
- local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
- local mag = (lastPoint - part.Position).magnitude
- local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
- local m = Instance.new("SpecialMesh",p)
- p.CFrame = point * CFrame.new(0, mag/2, 0)
- m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
- lastPoint = part.Position
- coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
- end
- end))
- end
- function EndEffect()
- effectOn = false
- end
- function detach(bool)
- LLW.C0 = CFrame.new(0, 0, 0)
- RLW.C0 = CFrame.new(0, 0, 0)
- LAW.C0 = CFrame.new(0,0,0)
- RAW.C0 = CFrame.new(0, 0, 0)
- if bool then
- LLW.Part1 = nil
- RLW.Part1 = nil
- RAW.Part1 = nil
- LAW.Part1 = nil
- end
- end
- function attach()
- RAW.Part1 = Rarm
- LAW.Part1 = Larm
- RLW.Part1 = Rleg
- LLW.Part1 = Lleg
- end
- function normal()
- neck.C0 = necko
- RAW.C0 = RAWStand
- LAW.C0 = LAWStand
- RLW.C0 = RLWStand
- LLW.C0 = LLWStand
- RAW.C1 = CFrame.new(0, 0.5, 0)
- LAW.C1 = CFrame.new(0, 0.5, 0)
- RLW.C1 = CFrame.new(0, 0.8, 0)
- LLW.C1 = CFrame.new(0, 0.8, 0)
- HW.C0 = HWStand
- end
- function idleanim()
- attach()
- for i = 0, 10, 10/22 do
- RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
- neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
- if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
- wait()
- end
- wait()
- for i = 10, 0, -10/29 do
- RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
- neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
- if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
- wait()
- end
- normal()
- end
- function runanim()
- RLW.Part1 = nil
- LLW.Part1 = nil
- end
- coroutine.resume(coroutine.create(function()
- while true do
- wait()
- if selected and Able == true and RestingAnim == false then
- if torso.Velocity.magnitude < 2 then
- idleanim()
- wait()
- else
- runanim()
- wait()
- end
- end
- end
- end))
- function selectanim()
- if RestingAnim == false and Able == true then
- local ah = CFrame.Angles(0, 0, math.rad(90))
- RAW.Part1 = Rarm
- for i = 0, 270, 270/5 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
- wait()
- end
- HW.C0 = ah
- HW.Part1 = handle
- TH.Part1 = nil
- PlaySound(equip)
- for i = 270, 70, -200/13 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
- wait()
- end
- attach()
- for i = 70, 120, 50/8 do
- local asd = i-70
- 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))
- LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
- HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
- neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
- RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
- LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
- wait()
- end
- if RAWStand == nil then
- RAWStand = RAW.C0
- LAWStand = LAW.C0
- RLWStand = RLW.C0
- LLWStand = LLW.C0
- HWStand = HW.C0
- end
- normal()
- end
- end
- function deselanim()
- if RestingAnim == false and Able == true then
- local ah = CFrame.Angles(0, 0, math.rad(90))
- for i = 120, 70, -50/8 do
- local asd = i-70
- 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))
- LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
- HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
- neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
- RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
- LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
- wait()
- end
- LLW.Part1 = nil
- RLW.Part1 = nil
- LAW.Part1 = nil
- for i = 70, 270, 200/13 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
- wait()
- end
- HW.C0 = ah
- HW.Part1 = nil
- TH.Part1 = handle
- for i = 270, 0, -270/6 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
- wait()
- end
- neck.C0 = necko
- detach(true)
- end
- end
- function smash(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- local CF2 = CF
- bg.cframe = CF2
- PlaySound(slash)
- for i = 0, 1, Prop.AS*1.1 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
- neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
- wait()
- end
- bp.position = CF * CFrame.new(0, 0, -1.1).p
- StartEffect(maintip)
- Hurt = true
- for i = 0, 1, Prop.AS*1.5 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
- HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
- neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
- wait()
- end
- Hurt = false
- EndEffect()
- PlaySound(smashsound)
- bp.position = CF * CFrame.new(0, 0, -1.9).p
- for i = 0, 1, Prop.AS do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
- neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- function swing(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- local CF2 = CF
- bg.cframe = CF2
- PlaySound(slash)
- for i = 0, 1, Prop.AS*1.5 do
- RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
- wait()
- end
- Hurt = true
- StartEffect(maintip)
- for i = 0, 1, Prop.AS*1.3 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
- wait()
- end
- EndEffect()
- Hurt = false
- for i = 0, 1, Prop.AS*0.8 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
- 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)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- function stab(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- local CF2 = CF
- bg.cframe = CF2
- PlaySound(slash)
- for i = 0, 1, Prop.AS do
- 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)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
- wait()
- end
- StartEffect(maintip)
- Hurt = true
- bp.position = CF * CFrame.new(0, 0, -0.6).p
- for i = 0, 1, Prop.AS*1.5 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
- HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
- wait()
- end
- Hurt = false
- EndEffect()
- bp.position = CF.p
- for i = 0, 1, Prop.AS*1.1 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
- HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- function epicsmashfunc(hit)
- local ch = hit.Parent
- local h = getHumanoid(ch)
- local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
- return h, t, head
- end
- function epicsmash(mouse)
- if Prop.Rage >= 50 then
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- bg.cframe = CF
- local hu, to, head = nil, nil, nil
- local Epic = true
- local conn = Lleg.Touched:connect(function(hit)
- if Epic then
- hu, to, head = epicsmashfunc(hit)
- if hu and to and head then Epic = false end
- end
- end)
- PlaySound(slash)
- for i = 0, 1, 0.12 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
- wait()
- end
- conn:disconnect()
- if hu and to and head then
- Prop.Rage = Prop.Rage - 50
- hu.PlatformStand = true
- local bg2 = Add.BG(to)
- bg2.P = 6000
- bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
- local bp2 = Add.BP(to)
- bp2.position = CF * CFrame.new(-1, -4, -4).p
- bp2.P = 5000
- wait(0.1)
- for i = 0, 1, 0.045 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
- 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)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
- wait()
- end
- PlaySound(slash)
- bp2:remove()
- bg2:remove()
- wait(0.2)
- StartEffect(maintip)
- for i = 0, 1, 0.1 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
- wait()
- end
- coroutine.resume(coroutine.create(function()
- local frr = Cam.CoordinateFrame
- for i = 1, math.random(3,6) do
- wait()
- Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
- end
- end))
- PlaySound(smashsound)
- EndEffect()
- local pos = head.Position
- if (pos - maintip.Position).magnitude < 2 then
- damage(hu, head, 0.3, hu.Health, hu.Health)
- head:remove()
- PlaySound(hitsound)
- for i = 1, math.random(7, 17) do
- local hmm = math.random(1,6)
- if hmm < 6 then
- local cols = {"White", "Really red"}
- 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)
- p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
- p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
- p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
- else
- local cols = {"Institutional white", "White"}
- 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)
- p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
- p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
- p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
- end
- end
- end
- for i = 0, 1, 0.06 do
- 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))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
- bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
- wait()
- end
- else
- for i = 0, 1, 0.08 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
- 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)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
- wait()
- end
- bg:remove()
- bp:remove()
- normal()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function shockwave(mouse)
- local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
- if Prop.Rage >= 80 and t then
- Prop.Rage = Prop.Rage - 80
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.P = 5000
- local CF = ComputePos(Orig.p, mouseHit)
- bg.cframe = CF
- PlaySound(charge)
- for i = 0, 1, 0.07 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
- wait()
- end
- for i = 0, 1, 0.04 do
- 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)
- 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)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
- wait()
- end
- bp.P = 12001
- wait(0.1)
- StartEffect(maintip)
- PlaySound(slash)
- for i = 0, 1, 0.1 do
- 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)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
- bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
- bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
- wait()
- end
- coroutine.resume(coroutine.create(function()
- local frr = Cam.CoordinateFrame
- for i = 1, math.random(10,16) do
- wait()
- Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
- end
- end))
- PlaySound(smashsound)
- local pos = CF * CFrame.new(-2, -3, -3).p
- EndEffect()
- local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
- p.CFrame = CFrame.new(pos)
- local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
- p2.CFrame = CFrame.new(pos)
- local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
- p3.CFrame = CFrame.new(pos)
- local m3 = Instance.new("SpecialMesh",p3)
- m3.MeshType = "Sphere"
- PlaySound(boom)
- local m2 = Instance.new("CylinderMesh",p2)
- local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
- local tab = {}
- coroutine.resume(coroutine.create(function()
- for x = 0, 1.04, 0.04 do
- wait()
- local thing = 33*x
- m.Scale = Vector3.new(21*x, 5*x, 21*x)
- m2.Scale = Vector3.new(thing, 1, thing)
- m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
- p.Transparency = x
- p2.Transparency = x
- p3.Transparency = x
- for i, v in pairs(workspace:children()) do
- local h = getHumanoid(v)
- local to = v:findFirstChild("Torso")
- if h ~= nil and to ~= nil and find(tab, v) == nil then
- if (to.Position - pos).magnitude < (thing/2) then
- damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
- to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
- to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
- h.PlatformStand = true
- table.insert(tab, v)
- coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
- end
- end
- end
- end
- p:remove()
- p2:remove()
- p3:remove()
- end))
- wait(0.8)
- for i = 0, 1, Prop.AS*0.8 do
- 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)
- 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)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function flipsmash(mouse)
- local Orig = torso.CFrame
- local mouseHit = mouse
- local CF = ComputePos(Orig.p, mouseHit)
- local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
- local ahp = (CF * CFrame.new(0, 0, -14.5))
- local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
- if t and t2 and Prop.Rage >= 90 then
- Prop.Rage = Prop.Rage - 90
- attach()
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bg.cframe = CF
- local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
- for i = 0, 1, 0.08 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
- wait()
- end
- wait(0.15)
- hum.PlatformStand = true
- for i = 0, 1, 0.13 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
- 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)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
- neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
- wait()
- end
- PlaySound(slash)
- for i = 0, 1, 0.13 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
- wait()
- end
- StartEffect(maintip)
- PlaySound(slash)
- for i = 0, 1, 0.06 do
- 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)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
- neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
- wait()
- end
- coroutine.resume(coroutine.create(function()
- local frr = Cam.CoordinateFrame
- for i = 1, math.random(13,20) do
- wait()
- Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
- end
- end))
- PlaySound(smashsound)
- PlaySound(boomboom)
- EndEffect()
- local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
- local siz = math.random(65,115)/10
- local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
- partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
- local decc = Instance.new("Decal",partie)
- decc.Shiny = 0
- decc.Specular = 0
- decc.Texture = "http://www.roblox.com/asset/?id=49173398"
- decc.Face = "Top"
- local count = 0
- for i, v in pairs(workspace:children()) do
- local h = getHumanoid(v)
- local to = v:findFirstChild("Torso")
- if h ~= nil and to ~= nil then
- if (to.Position - poo).magnitude < 15 then
- count = count + 1
- local Maxhp = h.MaxHealth
- if Maxhp > 5000 then Maxhp = 5000 end
- damage(h, to, 0.5, 0, Maxhp+5)
- to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
- to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
- to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- h.PlatformStand = true
- coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
- if count >= 2 then break end
- end
- end
- end
- coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
- wait(0.6)
- for i = 0, 1, 0.06 do
- 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)
- 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)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
- wait()
- end
- hum.PlatformStand = false
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function spin(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local CF = ComputePos(Orig.p, mouseHit)
- local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
- if t then
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.position = Orig.p
- bg.cframe = CF
- PlaySound(slash)
- for i = 0, 1, 0.11 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
- RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
- neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- wait()
- end
- local posg = CF * CFrame.new(0, -0.6, -4)
- PlaySound(hitsound, 0.9)
- for i = 0, 1, 0.13 do
- 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)
- RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
- 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)
- 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)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = CF * CFrame.new(0, 1*i, -2*i).p
- wait()
- end
- hum.PlatformStand = true
- bg.Parent = handle
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
- bp.Parent = handle
- bp.position = posg.p
- StartEffect(Lleg)
- Leghurt = true
- PlaySound(slash)
- for i = 0, 1, 0.09 do
- 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)
- RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
- wait()
- end
- for i = 0, 1, 0.055 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
- RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
- neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
- wait()
- end
- EndEffect()
- Leghurt = false
- for i = 0, 1, 0.12 do
- 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)
- RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
- neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
- wait()
- end
- bg.Parent = torso
- bp.Parent = torso
- bg.cframe = CF
- for i = 0, 1, 0.14 do
- 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)
- RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
- neck.C0 = necko * CFrame.Angles(0, 0, 0)
- bp.position = CF * CFrame.new(0, 0, -2+1*i).p
- bg.cframe = CF
- wait()
- end
- hum.PlatformStand = false
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function rest()
- local Orig = torso.CFrame
- local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
- local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
- if t then
- attach()
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.position = CF.p
- bg.cframe = CF
- local cen = CF * CFrame.new(0, -2.5, 0)
- RestingAnim = true
- hum.PlatformStand = true
- local standup = function()
- Resting = false
- bp.Parent = torso
- cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
- for i = 1, 0, -0.12 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
- neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
- wait()
- end
- for i = 1, 0, -0.17 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
- wait()
- end
- hum.PlatformStand = false
- bg:remove()
- bp:remove()
- normal()
- Able = true
- RestingAnim = false
- end
- local connec = hum.Changed:connect(function()
- if hum.PlatformStand == false then
- coroutine.resume(coroutine.create(function()
- standup()
- end))
- standup = nil
- connec:disconnect()
- end
- end)
- local lasthp = hum.Health
- local conn = hum.HealthChanged:connect(function(hp)
- if lasthp - hp > 0.8 then
- hum.PlatformStand = false
- conn:disconnect()
- end
- lasthp = hp
- end)
- coroutine.resume(coroutine.create(function()
- repeat wait() until Resting
- while Resting do
- wait()
- if torso.Velocity.magnitude > 4 then
- hum.PlatformStand = false
- break
- end
- end
- end))
- for i = 0, 1, 0.1 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
- wait()
- end
- for i = 0, 1, 0.07 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
- neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
- wait()
- end
- Resting = true
- coroutine.resume(coroutine.create(function()
- wait(0.4)
- bp.Parent = nil
- end))
- coroutine.resume(coroutine.create(function()
- while Resting and selected do
- wait(math.random(350,800)/1000)
- hum.Health = hum.Health + math.random(1,2)
- Prop.Rage = Prop.Rage + 1
- end
- hum.PlatformStand = false
- end))
- end
- end
- function select(mouse)
- mouse.Icon = MouseIc
- selectanim()
- selected = true
- mouse.Button1Down:connect(function()
- if Able and RestingAnim == false and hum.Sit == false then
- Able = false
- swing(mouse.Hit.p)
- Able = true
- end
- end)
- mouse.Button1Down:connect(function()
- mouse.Icon = MouseDo
- mouse.Button1Up:wait()
- mouse.Icon = MouseIc
- end)
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if Able and RestingAnim == false and hum.Sit == false then
- if key == "q" then
- Able = false
- smash(mouse.Hit.p)
- Able = true
- elseif key == "e" then
- Able = false
- swing(mouse.Hit.p)
- Able = true
- elseif key == "r" then
- Able = false
- stab(mouse.Hit.p)
- Able = true
- elseif key == "f" then
- Able = false
- epicsmash(mouse.Hit.p)
- Able = true
- elseif key == "z" then
- Able = false
- shockwave(mouse.Hit.p)
- Able = true
- elseif key == "x" then
- Able = false
- flipsmash(mouse.Hit.p)
- Able = true
- elseif key == "t" then
- Able = false
- spin(mouse.Hit.p)
- Able = true
- end
- end
- if Able then
- if key == "g" and AbleG then
- AbleG = false
- if Resting == true then
- Resting = false
- else
- rest()
- end
- wait(0.8)
- AbleG = true
- end
- end
- end)
- end
- function deselect(mouse)
- selected = false
- deselanim()
- end
- bin.Selected:connect(select)
- bin.Deselected:connect(deselect)Ancor = game:GetService("Players")
- me = Ancor.LocalPlayer
- char = me.Character
- Modelname = "Warhammah"
- Toolname = "Warhammar"
- Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
- necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- selected = false
- effectOn = false
- Hurt = false
- Leghurt = false
- Deb = true
- LegDeb = true
- Able = true
- Resting = false
- RestingAnim = false
- AbleG = true
- Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
- Prop.AS = Prop.AS/300
- Cam = workspace.CurrentCamera
- ToolIcon = "http://www.roblox.com/asset/?id=49192762"
- MouseIc = "http://www.roblox.com/asset/?id=49192792"
- MouseDo = "http://www.roblox.com/asset/?id=49192819"
- Add = {
- Sphere = function(P)
- local m = Instance.new("SpecialMesh",P)
- m.MeshType = "Sphere"
- return m
- end,
- BF = function(P)
- local bf = Instance.new("BodyForce",P)
- bf.force = Vector3.new(0, P:GetMass()*187, 0)
- return bf
- end,
- BP = function(P)
- local bp = Instance.new("BodyPosition",P)
- bp.maxForce = Vector3.new(math.huge, 0, math.huge)
- bp.P = 14000
- return bp
- end,
- BG = function(P)
- local bg = Instance.new("BodyGyro",P)
- bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- bg.P = 14000
- return bg
- end,
- Mesh = function(P, ID, x, y, z)
- local m = Instance.new("SpecialMesh")
- m.MeshId = ID
- m.Scale = Vector3.new(x, y, z)
- m.Parent = P
- return m
- end,
- Sound = function(P, ID, vol, pitch)
- local s = Instance.new("Sound")
- s.SoundId = ID
- s.Volume = vol
- s.Pitch = pitch
- s.Parent = P
- return s
- end
- }
- function find(tab, arg)
- local ah = nil
- for i,v in pairs(tab) do
- if v == arg then
- ah = v
- end
- end
- return ah
- end
- function getAllParts(from)
- local t = {}
- function getParts(where)
- for i, v in pairs(where:children()) do
- if v:IsA("BasePart") then
- if v.Parent ~= char and v.Parent.Parent ~= char then
- table.insert(t, v)
- end
- end
- getParts(v)
- end
- end
- getParts(workspace)
- return t
- end
- function RayCast(pos1, pos2, maxDist, forward)
- local list = getAllParts(workspace)
- local pos0 = pos1
- for dist = 1, maxDist, forward do
- pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
- for _, v in pairs(list) do
- local pos3 = v.CFrame:pointToObjectSpace(pos0)
- local s = v.Size
- 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
- return pos0, v
- end
- end
- end
- return pos0, nil
- end
- function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
- local p = Instance.new("Part")
- p.formFactor = "Custom"
- p.Anchored = Anchor
- p.CanCollide = Collide
- p.Transparency = Tran
- p.Reflectance = Ref
- p.BrickColor = BrickColor.new(Color)
- for _, Surf in pairs(Surfaces) do
- p[Surf] = "Smooth"
- end
- p.Size = Vector3.new(X, Y, Z)
- if Break then
- p:BreakJoints()
- else p:MakeJoints() end
- p.Parent = Parent
- p.Locked = true
- return p
- end
- function Weld(p0, p1, x, y, z, a, b, c)
- local w = Instance.new("Weld")
- w.Parent = p0
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
- return w
- end
- function ComputePos(pos1, pos2)
- local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
- return CFrame.new(pos1, pos3)
- end
- function getHumanoid(c)
- local h = nil
- for i,v in pairs(c:children()) do
- if v:IsA("Humanoid") and c ~= char then
- if v.Health > 0 then
- h = v
- end
- end
- end
- return h
- end
- for i,v in pairs(char:children()) do
- if v.Name == Modelname then
- v:remove()
- end
- end
- pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
- Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
- Sc.Name = "RaigMeter"
- Fr = Instance.new("Frame",Sc)
- Fr.Size = UDim2.new(0, 250, 0, 28)
- Fr.Position = UDim2.new(0.5, -125, 0, 5)
- Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
- Met = Instance.new("Frame", Fr)
- Met.Size = UDim2.new(1, -10, 1, -6)
- Met.Position = UDim2.new(0, 5, 0, 3)
- Met.BackgroundColor3 = Color3.new(0, 0, 0)
- Met.BorderSizePixel = 0
- Meter = Instance.new("ImageLabel", Met)
- Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
- Meter.Position = UDim2.new(0, 0, 0, 1)
- Meter.Image = "http://www.roblox.com/asset/?id=48965808"
- Meter.BorderSizePixel = 0
- Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
- Tx = Instance.new("TextLabel", Met)
- Tx.Size = UDim2.new(0, 0, 1, 0)
- Tx.Position = UDim2.new(0, 5, 0, 0)
- Tx.Text = Prop.Rage.." / "..Prop.MaxRage
- Tx.Font = "ArialBold"
- Tx.FontSize = "Size18"
- Tx.BackgroundTransparency = 1
- Tx.TextColor3 = Color3.new(1, 0, 0)
- Tx.TextXAlignment = "Left"
- laast = Prop.Rage
- coroutine.resume(coroutine.create(function()
- while true do
- wait()
- if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
- if laast ~= Prop.Rage then
- Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
- laast = Prop.Rage
- Tx.Text = Prop.Rage.." / "..Prop.MaxRage
- end
- end
- end))
- torso = char.Torso
- neck = torso.Neck
- hum = char.Humanoid
- Rarm = char["Right Arm"]
- Larm = char["Left Arm"]
- Rleg = char["Right Leg"]
- Lleg = char["Left Leg"]
- hc = Instance.new("Humanoid")
- hc.Health = 0
- hc.MaxHealth = 0
- slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
- hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
- charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
- boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
- smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
- boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
- equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
- function PlaySound(sound, pitch)
- local s = sound:clone()
- if pitch ~= nil then
- if tonumber(pitch) then
- s.Pitch = tonumber(pitch)
- end
- end
- s.Parent = torso
- s.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- s:remove()
- end))
- end
- Mo = Instance.new("Model")
- Mo.Name = Modelname
- RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
- LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
- RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
- LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
- RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
- LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
- RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
- LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
- HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
- HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
- HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
- TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
- RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
- handle = Part(Mo, false, false, 0, 0, "White", 0.4, 5, 0.4, true)
- handle.Name = "Handle"
- Instance.new("SpecialMesh",handle)
- maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
- Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
- DMGParts = {}
- for i = 0, 135, 45 do
- local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
- Instance.new("BlockMesh",tip)
- Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
- table.insert(DMGParts, tip)
- for a = -0.9, 0.9, 1.8 do
- for x = 0, math.pi, math.pi do
- local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
- local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
- w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
- w.C1 = CFrame.new(0, -1, 0)
- Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
- local trim = Part(Mo, false, false, 0, 0, "White", 0.67, 0.1, 0.5, true)
- local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
- w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
- w2.C1 = CFrame.new(0, -0.58, 0)
- end
- end
- end
- spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
- Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
- Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
- table.insert(DMGParts, spiketip)
- local handletip1 = Part(Mo, false, false, 0, 0.2, "White", 0.5, 0.5, 0.5, true)
- local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
- w1.C0 = CFrame.new(0, -2.6, 0)
- Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
- local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
- Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
- Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
- Mo.Parent = char
- TH.Part1 = handle
- function showdmg(dmg, p, pos)
- local mo = Instance.new("Model")
- mo.Name = dmg
- local pa = Part(mo, false, true, 0, 0, "White", 0.8, 0.3, 0.8, true)
- pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
- pa.Name = "Head"
- local hah = hc:clone()
- hah.Parent = mo
- local bp = Add.BP(pa)
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.position = p.Position + Vector3.new(0, 3+pos, 0)
- Add.BG(pa)
- coroutine.resume(coroutine.create(function()
- wait()
- mo.Parent = workspace
- wait(1.4)
- mo:remove()
- end))
- end
- function damage(hum, p, num, dm1, dm2)
- local dmg = math.random(dm1, dm2)
- hum.Health = hum.Health - dmg
- showdmg(dmg, p, num)
- return dmg
- end
- function brickdamage(hit)
- local h = getHumanoid(hit.Parent)
- if h ~= nil and Hurt and Deb then
- Deb = false
- local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
- PlaySound(hitsound)
- Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
- wait(0.3)
- Deb = true
- end
- end
- function legdamage(hit)
- local h = getHumanoid(hit.Parent)
- if h ~= nil and Leghurt and LegDeb then
- LegDeb = false
- local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
- PlaySound(hitsound)
- Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
- coroutine.resume(coroutine.create(function()
- local haha = math.random(1,3)
- if haha == 1 then
- h.PlatformStand = true
- wait()
- local ps = getAllParts(h.Parent)
- for i, v in pairs(ps) do
- if v.Anchored == false then
- v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
- v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
- end
- end
- wait(0.8)
- h.PlatformStand = false
- end
- end))
- wait(0.2)
- LegDeb = true
- end
- end
- for i, v in pairs({Rleg, Lleg}) do
- v.Touched:connect(legdamage)
- end
- for i,v in pairs(DMGParts) do
- v.Touched:connect(brickdamage)
- end
- if script.Parent.className ~= "HopperBin" then
- h = Instance.new("HopperBin",me.Backpack)
- h.Name = Toolname
- h.TextureId = ToolIcon
- script.Parent = h
- end
- bin = script.Parent
- function StartEffect(part)
- effectOn = true
- local lastPoint = part.Position
- coroutine.resume(coroutine.create(function()
- while effectOn do
- wait()
- local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
- local mag = (lastPoint - part.Position).magnitude
- local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
- local m = Instance.new("SpecialMesh",p)
- p.CFrame = point * CFrame.new(0, mag/2, 0)
- m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
- lastPoint = part.Position
- coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
- end
- end))
- end
- function EndEffect()
- effectOn = false
- end
- function detach(bool)
- LLW.C0 = CFrame.new(0, 0, 0)
- RLW.C0 = CFrame.new(0, 0, 0)
- LAW.C0 = CFrame.new(0,0,0)
- RAW.C0 = CFrame.new(0, 0, 0)
- if bool then
- LLW.Part1 = nil
- RLW.Part1 = nil
- RAW.Part1 = nil
- LAW.Part1 = nil
- end
- end
- function attach()
- RAW.Part1 = Rarm
- LAW.Part1 = Larm
- RLW.Part1 = Rleg
- LLW.Part1 = Lleg
- end
- function normal()
- neck.C0 = necko
- RAW.C0 = RAWStand
- LAW.C0 = LAWStand
- RLW.C0 = RLWStand
- LLW.C0 = LLWStand
- RAW.C1 = CFrame.new(0, 0.5, 0)
- LAW.C1 = CFrame.new(0, 0.5, 0)
- RLW.C1 = CFrame.new(0, 0.8, 0)
- LLW.C1 = CFrame.new(0, 0.8, 0)
- HW.C0 = HWStand
- end
- function idleanim()
- attach()
- for i = 0, 10, 10/22 do
- RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
- neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
- if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
- wait()
- end
- wait()
- for i = 10, 0, -10/29 do
- RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
- neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
- if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
- wait()
- end
- normal()
- end
- function runanim()
- RLW.Part1 = nil
- LLW.Part1 = nil
- end
- coroutine.resume(coroutine.create(function()
- while true do
- wait()
- if selected and Able == true and RestingAnim == false then
- if torso.Velocity.magnitude < 2 then
- idleanim()
- wait()
- else
- runanim()
- wait()
- end
- end
- end
- end))
- function selectanim()
- if RestingAnim == false and Able == true then
- local ah = CFrame.Angles(0, 0, math.rad(90))
- RAW.Part1 = Rarm
- for i = 0, 270, 270/5 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
- wait()
- end
- HW.C0 = ah
- HW.Part1 = handle
- TH.Part1 = nil
- PlaySound(equip)
- for i = 270, 70, -200/13 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
- wait()
- end
- attach()
- for i = 70, 120, 50/8 do
- local asd = i-70
- 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))
- LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
- HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
- neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
- RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
- LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
- wait()
- end
- if RAWStand == nil then
- RAWStand = RAW.C0
- LAWStand = LAW.C0
- RLWStand = RLW.C0
- LLWStand = LLW.C0
- HWStand = HW.C0
- end
- normal()
- end
- end
- function deselanim()
- if RestingAnim == false and Able == true then
- local ah = CFrame.Angles(0, 0, math.rad(90))
- for i = 120, 70, -50/8 do
- local asd = i-70
- 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))
- LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
- HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
- neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
- RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
- LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
- wait()
- end
- LLW.Part1 = nil
- RLW.Part1 = nil
- LAW.Part1 = nil
- for i = 70, 270, 200/13 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
- wait()
- end
- HW.C0 = ah
- HW.Part1 = nil
- TH.Part1 = handle
- for i = 270, 0, -270/6 do
- RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
- wait()
- end
- neck.C0 = necko
- detach(true)
- end
- end
- function smash(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- local CF2 = CF
- bg.cframe = CF2
- PlaySound(slash)
- for i = 0, 1, Prop.AS*1.1 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
- neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
- wait()
- end
- bp.position = CF * CFrame.new(0, 0, -1.1).p
- StartEffect(maintip)
- Hurt = true
- for i = 0, 1, Prop.AS*1.5 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
- HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
- neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
- wait()
- end
- Hurt = false
- EndEffect()
- PlaySound(smashsound)
- bp.position = CF * CFrame.new(0, 0, -1.9).p
- for i = 0, 1, Prop.AS do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
- neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- function swing(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- local CF2 = CF
- bg.cframe = CF2
- PlaySound(slash)
- for i = 0, 1, Prop.AS*1.5 do
- RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
- wait()
- end
- Hurt = true
- StartEffect(maintip)
- for i = 0, 1, Prop.AS*1.3 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
- wait()
- end
- EndEffect()
- Hurt = false
- for i = 0, 1, Prop.AS*0.8 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
- 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)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- function stab(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- local CF2 = CF
- bg.cframe = CF2
- PlaySound(slash)
- for i = 0, 1, Prop.AS do
- 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)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
- wait()
- end
- StartEffect(maintip)
- Hurt = true
- bp.position = CF * CFrame.new(0, 0, -0.6).p
- for i = 0, 1, Prop.AS*1.5 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
- HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
- wait()
- end
- Hurt = false
- EndEffect()
- bp.position = CF.p
- for i = 0, 1, Prop.AS*1.1 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
- HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
- bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- function epicsmashfunc(hit)
- local ch = hit.Parent
- local h = getHumanoid(ch)
- local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
- return h, t, head
- end
- function epicsmash(mouse)
- if Prop.Rage >= 50 then
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- local CF = ComputePos(Orig.p, mouseHit)
- bg.cframe = CF
- local hu, to, head = nil, nil, nil
- local Epic = true
- local conn = Lleg.Touched:connect(function(hit)
- if Epic then
- hu, to, head = epicsmashfunc(hit)
- if hu and to and head then Epic = false end
- end
- end)
- PlaySound(slash)
- for i = 0, 1, 0.12 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
- wait()
- end
- conn:disconnect()
- if hu and to and head then
- Prop.Rage = Prop.Rage - 50
- hu.PlatformStand = true
- local bg2 = Add.BG(to)
- bg2.P = 6000
- bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
- local bp2 = Add.BP(to)
- bp2.position = CF * CFrame.new(-1, -4, -4).p
- bp2.P = 5000
- wait(0.1)
- for i = 0, 1, 0.045 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
- 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)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
- wait()
- end
- PlaySound(slash)
- bp2:remove()
- bg2:remove()
- wait(0.2)
- StartEffect(maintip)
- for i = 0, 1, 0.1 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
- wait()
- end
- coroutine.resume(coroutine.create(function()
- local frr = Cam.CoordinateFrame
- for i = 1, math.random(3,6) do
- wait()
- Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
- end
- end))
- PlaySound(smashsound)
- EndEffect()
- local pos = head.Position
- if (pos - maintip.Position).magnitude < 2 then
- damage(hu, head, 0.3, hu.Health, hu.Health)
- head:remove()
- PlaySound(hitsound)
- for i = 1, math.random(7, 17) do
- local hmm = math.random(1,6)
- if hmm < 6 then
- local cols = {"White", "Really red"}
- 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)
- p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
- p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
- p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
- else
- local cols = {"Institutional white", "White"}
- 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)
- p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
- p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
- p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
- end
- end
- end
- for i = 0, 1, 0.06 do
- 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))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
- bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
- wait()
- end
- else
- for i = 0, 1, 0.08 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
- 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)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
- neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
- bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
- wait()
- end
- bg:remove()
- bp:remove()
- normal()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function shockwave(mouse)
- local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
- if Prop.Rage >= 80 and t then
- Prop.Rage = Prop.Rage - 80
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.P = 5000
- local CF = ComputePos(Orig.p, mouseHit)
- bg.cframe = CF
- PlaySound(charge)
- for i = 0, 1, 0.07 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
- wait()
- end
- for i = 0, 1, 0.04 do
- 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)
- 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)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
- wait()
- end
- bp.P = 12001
- wait(0.1)
- StartEffect(maintip)
- PlaySound(slash)
- for i = 0, 1, 0.1 do
- 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)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
- bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
- bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
- wait()
- end
- coroutine.resume(coroutine.create(function()
- local frr = Cam.CoordinateFrame
- for i = 1, math.random(10,16) do
- wait()
- Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
- end
- end))
- PlaySound(smashsound)
- local pos = CF * CFrame.new(-2, -3, -3).p
- EndEffect()
- local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
- p.CFrame = CFrame.new(pos)
- local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
- p2.CFrame = CFrame.new(pos)
- local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
- p3.CFrame = CFrame.new(pos)
- local m3 = Instance.new("SpecialMesh",p3)
- m3.MeshType = "Sphere"
- PlaySound(boom)
- local m2 = Instance.new("CylinderMesh",p2)
- local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
- local tab = {}
- coroutine.resume(coroutine.create(function()
- for x = 0, 1.04, 0.04 do
- wait()
- local thing = 33*x
- m.Scale = Vector3.new(21*x, 5*x, 21*x)
- m2.Scale = Vector3.new(thing, 1, thing)
- m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
- p.Transparency = x
- p2.Transparency = x
- p3.Transparency = x
- for i, v in pairs(workspace:children()) do
- local h = getHumanoid(v)
- local to = v:findFirstChild("Torso")
- if h ~= nil and to ~= nil and find(tab, v) == nil then
- if (to.Position - pos).magnitude < (thing/2) then
- damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
- to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
- to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
- h.PlatformStand = true
- table.insert(tab, v)
- coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
- end
- end
- end
- end
- p:remove()
- p2:remove()
- p3:remove()
- end))
- wait(0.8)
- for i = 0, 1, Prop.AS*0.8 do
- 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)
- 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)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
- wait()
- end
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function flipsmash(mouse)
- local Orig = torso.CFrame
- local mouseHit = mouse
- local CF = ComputePos(Orig.p, mouseHit)
- local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
- local ahp = (CF * CFrame.new(0, 0, -14.5))
- local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
- if t and t2 and Prop.Rage >= 90 then
- Prop.Rage = Prop.Rage - 90
- attach()
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.position = Orig.p
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bg.cframe = CF
- local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
- for i = 0, 1, 0.08 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
- wait()
- end
- wait(0.15)
- hum.PlatformStand = true
- for i = 0, 1, 0.13 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
- 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)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
- neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
- wait()
- end
- PlaySound(slash)
- for i = 0, 1, 0.13 do
- 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)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
- wait()
- end
- StartEffect(maintip)
- PlaySound(slash)
- for i = 0, 1, 0.06 do
- 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)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
- neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
- wait()
- end
- coroutine.resume(coroutine.create(function()
- local frr = Cam.CoordinateFrame
- for i = 1, math.random(13,20) do
- wait()
- Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
- end
- end))
- PlaySound(smashsound)
- PlaySound(boomboom)
- EndEffect()
- local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
- local siz = math.random(65,115)/10
- local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
- partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
- local decc = Instance.new("Decal",partie)
- decc.Shiny = 0
- decc.Specular = 0
- decc.Texture = "http://www.roblox.com/asset/?id=49173398"
- decc.Face = "Top"
- local count = 0
- for i, v in pairs(workspace:children()) do
- local h = getHumanoid(v)
- local to = v:findFirstChild("Torso")
- if h ~= nil and to ~= nil then
- if (to.Position - poo).magnitude < 15 then
- count = count + 1
- local Maxhp = h.MaxHealth
- if Maxhp > 5000 then Maxhp = 5000 end
- damage(h, to, 0.5, 0, Maxhp+5)
- to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
- to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
- to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- h.PlatformStand = true
- coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
- if count >= 2 then break end
- end
- end
- end
- coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
- wait(0.6)
- for i = 0, 1, 0.06 do
- 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)
- 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)
- 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)
- 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)
- HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
- wait()
- end
- hum.PlatformStand = false
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function spin(mouse)
- attach()
- local mouseHit = mouse
- local Orig = torso.CFrame
- local CF = ComputePos(Orig.p, mouseHit)
- local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
- if t then
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.position = Orig.p
- bg.cframe = CF
- PlaySound(slash)
- for i = 0, 1, 0.11 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
- RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
- neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- wait()
- end
- local posg = CF * CFrame.new(0, -0.6, -4)
- PlaySound(hitsound, 0.9)
- for i = 0, 1, 0.13 do
- 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)
- RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
- 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)
- 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)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
- neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
- bg.cframe = CF * CFrame.Angles(0, 0, 0)
- bp.position = CF * CFrame.new(0, 1*i, -2*i).p
- wait()
- end
- hum.PlatformStand = true
- bg.Parent = handle
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
- bp.Parent = handle
- bp.position = posg.p
- StartEffect(Lleg)
- Leghurt = true
- PlaySound(slash)
- for i = 0, 1, 0.09 do
- 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)
- RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
- neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
- wait()
- end
- for i = 0, 1, 0.055 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
- RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
- neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
- wait()
- end
- EndEffect()
- Leghurt = false
- for i = 0, 1, 0.12 do
- 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)
- RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
- neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
- bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
- wait()
- end
- bg.Parent = torso
- bp.Parent = torso
- bg.cframe = CF
- for i = 0, 1, 0.14 do
- 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)
- RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
- LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
- RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
- LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
- neck.C0 = necko * CFrame.Angles(0, 0, 0)
- bp.position = CF * CFrame.new(0, 0, -2+1*i).p
- bg.cframe = CF
- wait()
- end
- hum.PlatformStand = false
- normal()
- bg:remove()
- bp:remove()
- end
- end
- function rest()
- local Orig = torso.CFrame
- local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
- local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
- if t then
- attach()
- local bg = Add.BG(torso)
- local bp = Add.BP(torso)
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.position = CF.p
- bg.cframe = CF
- local cen = CF * CFrame.new(0, -2.5, 0)
- RestingAnim = true
- hum.PlatformStand = true
- local standup = function()
- Resting = false
- bp.Parent = torso
- cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
- for i = 1, 0, -0.12 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
- neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
- wait()
- end
- for i = 1, 0, -0.17 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
- wait()
- end
- hum.PlatformStand = false
- bg:remove()
- bp:remove()
- normal()
- Able = true
- RestingAnim = false
- end
- local connec = hum.Changed:connect(function()
- if hum.PlatformStand == false then
- coroutine.resume(coroutine.create(function()
- standup()
- end))
- standup = nil
- connec:disconnect()
- end
- end)
- local lasthp = hum.Health
- local conn = hum.HealthChanged:connect(function(hp)
- if lasthp - hp > 0.8 then
- hum.PlatformStand = false
- conn:disconnect()
- end
- lasthp = hp
- end)
- coroutine.resume(coroutine.create(function()
- repeat wait() until Resting
- while Resting do
- wait()
- if torso.Velocity.magnitude > 4 then
- hum.PlatformStand = false
- break
- end
- end
- end))
- for i = 0, 1, 0.1 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
- LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
- neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
- wait()
- end
- for i = 0, 1, 0.07 do
- RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
- 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)
- RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
- LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
- neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
- HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
- bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
- bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
- wait()
- end
- Resting = true
- coroutine.resume(coroutine.create(function()
- wait(0.4)
- bp.Parent = nil
- end))
- coroutine.resume(coroutine.create(function()
- while Resting and selected do
- wait(math.random(350,800)/1000)
- hum.Health = hum.Health + math.random(1,2)
- Prop.Rage = Prop.Rage + 1
- end
- hum.PlatformStand = false
- end))
- end
- end
- function select(mouse)
- mouse.Icon = MouseIc
- selectanim()
- selected = true
- mouse.Button1Down:connect(function()
- if Able and RestingAnim == false and hum.Sit == false then
- Able = false
- swing(mouse.Hit.p)
- Able = true
- end
- end)
- mouse.Button1Down:connect(function()
- mouse.Icon = MouseDo
- mouse.Button1Up:wait()
- mouse.Icon = MouseIc
- end)
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if Able and RestingAnim == false and hum.Sit == false then
- if key == "q" then
- Able = false
- smash(mouse.Hit.p)
- Able = true
- elseif key == "e" then
- Able = false
- swing(mouse.Hit.p)
- Able = true
- elseif key == "r" then
- Able = false
- stab(mouse.Hit.p)
- Able = true
- elseif key == "f" then
- Able = false
- epicsmash(mouse.Hit.p)
- Able = true
- elseif key == "z" then
- Able = false
- shockwave(mouse.Hit.p)
- Able = true
- elseif key == "x" then
- Able = false
- flipsmash(mouse.Hit.p)
- Able = true
- elseif key == "t" then
- Able = false
- spin(mouse.Hit.p)
- Able = true
- end
- end
- if Able then
- if key == "g" and AbleG then
- AbleG = false
- if Resting == true then
- Resting = false
- else
- rest()
- end
- wait(0.8)
- AbleG = true
- end
- end
- end)
- end
- function deselect(mouse)
- selected = false
- deselanim()
- end
- bin.Selected:connect(select)
- bin.Deselected:connect(deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement