Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").artucox7
- local Mouse,mouse,UserInputService,ContextActionService
- do
- script.Parent = Player.Character
- local CAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.Parent = Player.Character
- local fakeEvent = function()
- local t = {_fakeEvent=true}
- t.Connect = function(self,f)self.Function=f end
- t.connect = t.Connect
- return t
- end
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- function CAS:BindAction(name,fun,touch,...)
- CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
- end
- function CAS:UnbindAction(name)
- CAS.Actions[name] = nil
- end
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("Button1Down")
- else
- m:TrigEvent("Button1Up")
- end
- else
- for n,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputBegan",io,false)
- else
- m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputEnded",io,false)
- end
- end
- end)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- --<=== Replace With Your Name
- local Char = Player.Character
- local Event = Char:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
- Event:FireServer(io)
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Changed = false
- local Mouse = Player:GetMouse()
- local h,t = Mouse.Hit,Mouse.Target
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
- h,t=Mouse.Hit,Mouse.Target
- end
- end
- print("Loading Request...")
- ---------Replace All "LocalPlayer" With Your Name.
- --Remove "Mouse =" or "local mouse =" at the start.
- --Replace Kermat161 At The Top Of The Script With You Name.
- -----------------------------Script In The Line's.
- wait(0.1)
- local plr = Player
- local char = plr.Character
- local hed = char.Head
- local tors = char.Torso
- local Torso = tors
- local hum = char.Humanoid
- local RA = char["Right Arm"]
- local LA = char["Left Arm"]
- local RL = char["Right Leg"]
- local LL = char["Left Leg"]
- local root = char.HumanoidRootPart
- LS=tors["Left Shoulder"]
- LH=tors["Left Hip"]
- RS=tors["Right Shoulder"]
- RH=tors["Right Hip"]
- Neck=tors.Neck
- radical = math.rad
- angles=CFrame.Angles
- random = math.random
- Vec3 = Vector3.new
- Inst = Instance.new
- cFrame = CFrame.new
- Euler = CFrame.fromEulerAnglesXYZ
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- Mrandom = math.random
- Cos = math.cos
- Acos = math.acos
- FLOOR = math.floor
- Player_Size = 1 --Size of the player.
- Animation_Speed = 1
- Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
- CF = CFrame.new
- VT = Vector3.new
- angles = CFrame.Angles
- attack = false
- Euler = CFrame.fromEulerAnglesXYZ
- Rad = math.rad
- IT = Instance.new
- BrickC = BrickColor.new
- Cos = math.cos
- Acos = math.acos
- Sin = math.sin
- Asin = math.asin
- Abs = math.abs
- Mrandom = math.random
- Floor = math.floor
- local CHANGE = 2 / Animation_Speed
- local cn = CFrame.new
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local Speed = 20
- local r = 255
- local g = 0
- local b = 0
- local Effects2 = {}
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- local sine = 0
- local change = 1
- local ANIMATE = char.Animate
- local ROBLOXIDLEANIMATION = IT("Animation")
- local RootPart = char.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- necko=CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=CF(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=CF(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=CF(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=CF(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=CF(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=char.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=Euler(-1.57,0,3.14)
- necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RSH, LSH = nil, nil
- RW = Instance.new("Weld")
- LW = Instance.new("Weld")
- RH = tors["Right Hip"]
- LH = tors["Left Hip"]
- RSH = tors["Right Shoulder"]
- LSH = tors["Left Shoulder"]
- RSH.Parent = nil
- LSH.Parent = nil
- RW.Name = "RW"
- RW.Part0 = tors
- RW.C0 = CF(1.5, 0.5, 0)
- RW.C1 = CF(0, 0.5, 0)
- RW.Part1 = RA
- RW.Parent = tors
- LW.Name = "LW"
- LW.Part0 = tors
- LW.C0 = CF(-1.5, 0.5, 0)
- LW.C1 = CF(0, 0.5, 0)
- LW.Part1 = LA
- LW.Parent = tors
- Effects = {}
- --Functions
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function kick(reas,plr,timetowait)
- wait(timetowait)
- plr:Kick(reas)
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- function Clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- if typeoftrans == "In" then
- rng.Transparency = 1
- end
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "FileMesh"
- rngm.MeshId = "rbxassetid://20329976"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- end
- local randomrot = math.random(1,2)
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- wait(0.01)
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- end
- if randomrot == 1 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
- elseif randomrot == 2 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
- end
- if typeoftrans == "Out" then
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- elseif typeoftrans == "In" then
- rng.Transparency = rng.Transparency - 0.01*bonuspeed
- end
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function explosion(prnt,pos,BR,BP)
- local expl = Instance.new("Explosion", prnt)
- expl.Position = pos
- expl.BlastRadius = BR
- expl.BlastPressure = BP
- end
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Part")
- o4 = Instance.new("Weld")
- o5 = Instance.new("CFrameValue")
- o6 = Instance.new("Part")
- o7 = Instance.new("Weld")
- o8 = Instance.new("CFrameValue")
- o9 = Instance.new("Part")
- o10 = Instance.new("Weld")
- o11 = Instance.new("CFrameValue")
- o12 = Instance.new("Part")
- o13 = Instance.new("Weld")
- o14 = Instance.new("CFrameValue")
- o15 = Instance.new("Part")
- o16 = Instance.new("Weld")
- o17 = Instance.new("CFrameValue")
- o18 = Instance.new("Part")
- o19 = Instance.new("Weld")
- o20 = Instance.new("CFrameValue")
- o21 = Instance.new("Part")
- o22 = Instance.new("Weld")
- o23 = Instance.new("CFrameValue")
- o24 = Instance.new("Part")
- o25 = Instance.new("Weld")
- o26 = Instance.new("CFrameValue")
- o27 = Instance.new("Part")
- o28 = Instance.new("Weld")
- o29 = Instance.new("CFrameValue")
- o30 = Instance.new("Part")
- o31 = Instance.new("Weld")
- o32 = Instance.new("CFrameValue")
- o33 = Instance.new("Part")
- o34 = Instance.new("Weld")
- o35 = Instance.new("CFrameValue")
- o36 = Instance.new("Part")
- o37 = Instance.new("Weld")
- o38 = Instance.new("CFrameValue")
- o39 = Instance.new("Part")
- o40 = Instance.new("Weld")
- o41 = Instance.new("CFrameValue")
- o42 = Instance.new("Part")
- o43 = Instance.new("Weld")
- o44 = Instance.new("CFrameValue")
- o45 = Instance.new("Part")
- o46 = Instance.new("Weld")
- o47 = Instance.new("CFrameValue")
- o48 = Instance.new("Part")
- o49 = Instance.new("Weld")
- o50 = Instance.new("CFrameValue")
- o51 = Instance.new("Weld")
- o52 = Instance.new("Part")
- o53 = Instance.new("Weld")
- o54 = Instance.new("CFrameValue")
- o1.Name = "BanHammer"
- o1.Parent = char
- o2.Name = "HitBox2"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Really black")
- o2.Transparency = 1
- o2.Position = Vector3.new(46.6797943, 11.5916481, 7.21522713)
- o2.CanCollide = false
- o2.Size = Vector3.new(3.31663537, 2.63672447, 0.804284275)
- o2.CFrame = CFrame.new(46.6797943, 11.5916481, 7.21522713, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o2.Position = Vector3.new(46.6797943, 11.5916481, 7.21522713)
- o2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o3.Parent = o1
- o3.BrickColor = BrickColor.new("Really black")
- o3.Position = Vector3.new(46.8207512, 2.59527779, 9.45395088)
- o3.CanCollide = false
- o3.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o3.CFrame = CFrame.new(46.8207512, 2.59527779, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o3.Position = Vector3.new(46.8207512, 2.59527779, 9.45395088)
- o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o4.Name = "qCFrameWeldThingy"
- o4.Parent = o3
- o4.C1 = CFrame.new(-0.140956879, 8.99637032, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o4.Part0 = o2
- o4.Part1 = o3
- o5.Name = "qRelativeCFrameWeldValue"
- o5.Parent = o3
- o5.Value = CFrame.new(-0.140956879, 8.99637032, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o6.Parent = o1
- o6.BrickColor = BrickColor.new("Really black")
- o6.Position = Vector3.new(46.8207512, 3.20056343, 9.45395088)
- o6.CanCollide = false
- o6.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o6.CFrame = CFrame.new(46.8207512, 3.20056343, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o6.BottomSurface = Enum.SurfaceType.Smooth
- o6.TopSurface = Enum.SurfaceType.Smooth
- o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o6.Position = Vector3.new(46.8207512, 3.20056343, 9.45395088)
- o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o7.Name = "qCFrameWeldThingy"
- o7.Parent = o6
- o7.C1 = CFrame.new(-0.140956879, 8.39108467, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o7.Part0 = o2
- o7.Part1 = o6
- o8.Name = "qRelativeCFrameWeldValue"
- o8.Parent = o6
- o8.Value = CFrame.new(-0.140956879, 8.39108467, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o9.Parent = o1
- o9.BrickColor = BrickColor.new("Really black")
- o9.Position = Vector3.new(46.8207512, 2.87719154, 9.45395088)
- o9.CanCollide = false
- o9.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o9.CFrame = CFrame.new(46.8207512, 2.87719154, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o9.BottomSurface = Enum.SurfaceType.Smooth
- o9.TopSurface = Enum.SurfaceType.Smooth
- o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o9.Position = Vector3.new(46.8207512, 2.87719154, 9.45395088)
- o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o10.Name = "qCFrameWeldThingy"
- o10.Parent = o9
- o10.C1 = CFrame.new(-0.140956879, 8.71445656, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o10.Part0 = o2
- o10.Part1 = o9
- o11.Name = "qRelativeCFrameWeldValue"
- o11.Parent = o9
- o11.Value = CFrame.new(-0.140956879, 8.71445656, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o12.Parent = o1
- o12.BrickColor = BrickColor.new("Really black")
- o12.Position = Vector3.new(46.8207512, 2.2719059, 9.45395088)
- o12.CanCollide = false
- o12.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o12.CFrame = CFrame.new(46.8207512, 2.2719059, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o12.BottomSurface = Enum.SurfaceType.Smooth
- o12.TopSurface = Enum.SurfaceType.Smooth
- o12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o12.Position = Vector3.new(46.8207512, 2.2719059, 9.45395088)
- o12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o13.Name = "qCFrameWeldThingy"
- o13.Parent = o12
- o13.C1 = CFrame.new(-0.140956879, 9.3197422, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o13.Part0 = o2
- o13.Part1 = o12
- o14.Name = "qRelativeCFrameWeldValue"
- o14.Parent = o12
- o14.Value = CFrame.new(-0.140956879, 9.3197422, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o15.Parent = o1
- o15.Material = Enum.Material.Marble
- o15.BrickColor = BrickColor.new("Dirt brown")
- o15.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
- o15.CanCollide = false
- o15.Size = Vector3.new(1.65831769, 2.48747659, 2.48747659)
- o15.CFrame = CFrame.new(46.8207512, 11.6165257, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o15.BottomSurface = Enum.SurfaceType.Smooth
- o15.TopSurface = Enum.SurfaceType.Smooth
- o15.Color = Color3.new(0.301961, 0.239216, 0.239216)
- o15.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
- o15.Color = Color3.new(0.301961, 0.239216, 0.239216)
- o16.Name = "qCFrameWeldThingy"
- o16.Parent = o15
- o16.C1 = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o16.Part0 = o2
- o16.Part1 = o15
- o17.Name = "qRelativeCFrameWeldValue"
- o17.Parent = o15
- o17.Value = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o18.Parent = o1
- o18.Material = Enum.Material.Marble
- o18.BrickColor = BrickColor.new("Dark taupe")
- o18.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
- o18.CanCollide = false
- o18.Size = Vector3.new(1.3266542, 2.15581298, 4.14579439)
- o18.CFrame = CFrame.new(46.8207512, 11.6165257, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o18.BottomSurface = Enum.SurfaceType.Smooth
- o18.TopSurface = Enum.SurfaceType.Smooth
- o18.Color = Color3.new(0.364706, 0.286275, 0.286275)
- o18.Position = Vector3.new(46.8207512, 11.6165257, 9.45395088)
- o18.Color = Color3.new(0.364706, 0.286275, 0.286275)
- o19.Name = "qCFrameWeldThingy"
- o19.Parent = o18
- o19.C1 = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o19.Part0 = o2
- o19.Part1 = o18
- o20.Name = "qRelativeCFrameWeldValue"
- o20.Parent = o18
- o20.Value = CFrame.new(-0.140956879, -0.0248775482, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o21.Parent = o1
- o21.Material = Enum.Material.Wood
- o21.BrickColor = BrickColor.new("Dirt brown")
- o21.Position = Vector3.new(46.8207512, 5.33149958, 9.45395088)
- o21.CanCollide = false
- o21.Size = Vector3.new(0.414579421, 10.662981, 0.414579421)
- o21.CFrame = CFrame.new(46.8207512, 5.33149958, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o21.BottomSurface = Enum.SurfaceType.Smooth
- o21.TopSurface = Enum.SurfaceType.Smooth
- o21.Color = Color3.new(0.266667, 0.215686, 0.211765)
- o21.Position = Vector3.new(46.8207512, 5.33149958, 9.45395088)
- o21.Color = Color3.new(0.266667, 0.215686, 0.211765)
- o22.Name = "qCFrameWeldThingy"
- o22.Parent = o21
- o22.C1 = CFrame.new(-0.140956879, 6.26014853, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o22.Part0 = o2
- o22.Part1 = o21
- o23.Name = "qRelativeCFrameWeldValue"
- o23.Parent = o21
- o23.Value = CFrame.new(-0.140956879, 6.26014853, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o24.Parent = o1
- o24.BrickColor = BrickColor.new("Really black")
- o24.Position = Vector3.new(46.8207512, 1.94024181, 9.45395088)
- o24.CanCollide = false
- o24.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o24.CFrame = CFrame.new(46.8207512, 1.94024181, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o24.BottomSurface = Enum.SurfaceType.Smooth
- o24.TopSurface = Enum.SurfaceType.Smooth
- o24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o24.Position = Vector3.new(46.8207512, 1.94024181, 9.45395088)
- o24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o25.Name = "qCFrameWeldThingy"
- o25.Parent = o24
- o25.C1 = CFrame.new(-0.140956879, 9.65140629, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o25.Part0 = o2
- o25.Part1 = o24
- o26.Name = "qRelativeCFrameWeldValue"
- o26.Parent = o24
- o26.Value = CFrame.new(-0.140956879, 9.65140629, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o27.Parent = o1
- o27.BrickColor = BrickColor.new("Really black")
- o27.Position = Vector3.new(46.8207512, 1.61687088, 9.45395088)
- o27.CanCollide = false
- o27.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o27.CFrame = CFrame.new(46.8207512, 1.61687088, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o27.BottomSurface = Enum.SurfaceType.Smooth
- o27.TopSurface = Enum.SurfaceType.Smooth
- o27.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o27.Position = Vector3.new(46.8207512, 1.61687088, 9.45395088)
- o27.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o28.Name = "qCFrameWeldThingy"
- o28.Parent = o27
- o28.C1 = CFrame.new(-0.140956879, 9.97477722, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o28.Part0 = o2
- o28.Part1 = o27
- o29.Name = "qRelativeCFrameWeldValue"
- o29.Parent = o27
- o29.Value = CFrame.new(-0.140956879, 9.97477722, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o30.Parent = o1
- o30.Material = Enum.Material.Granite
- o30.BrickColor = BrickColor.new("Really black")
- o30.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
- o30.CanCollide = false
- o30.Size = Vector3.new(1.65831769, 2.48747659, 0.389704525)
- o30.CFrame = CFrame.new(46.8207512, 11.6165257, 7.33545208, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o30.BottomSurface = Enum.SurfaceType.Smooth
- o30.TopSurface = Enum.SurfaceType.Smooth
- o30.Color = Color3.new(0, 0, 0)
- o30.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
- o30.Color = Color3.new(0, 0, 0)
- o31.Name = "qCFrameWeldThingy"
- o31.Parent = o30
- o31.C1 = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o31.Part0 = o2
- o31.Part1 = o30
- o32.Name = "qRelativeCFrameWeldValue"
- o32.Parent = o30
- o32.Value = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o33.Name = "HitBox1"
- o33.Parent = o1
- o33.BrickColor = BrickColor.new("Really black")
- o33.Transparency = 1
- o33.Position = Vector3.new(46.6797943, 11.5916481, 11.7341356)
- o33.CanCollide = false
- o33.Size = Vector3.new(3.31663537, 2.63672447, 0.804284275)
- o33.CFrame = CFrame.new(46.6797943, 11.5916481, 11.7341356, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o33.BottomSurface = Enum.SurfaceType.Smooth
- o33.TopSurface = Enum.SurfaceType.Smooth
- o33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o33.Position = Vector3.new(46.6797943, 11.5916481, 11.7341356)
- o33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o34.Name = "qCFrameWeldThingy"
- o34.Parent = o33
- o34.C1 = CFrame.new(0, 0, -4.5189085, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o34.Part0 = o2
- o34.Part1 = o33
- o35.Name = "qRelativeCFrameWeldValue"
- o35.Parent = o33
- o35.Value = CFrame.new(0, 0, -4.5189085, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o36.Parent = o1
- o36.Material = Enum.Material.Granite
- o36.BrickColor = BrickColor.new("Black")
- o36.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
- o36.CanCollide = false
- o36.Size = Vector3.new(1.49248588, 2.32164478, 0.414579421)
- o36.CFrame = CFrame.new(46.8207512, 11.6165257, 7.33545208, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o36.BottomSurface = Enum.SurfaceType.Smooth
- o36.TopSurface = Enum.SurfaceType.Smooth
- o36.Color = Color3.new(0.188235, 0.188235, 0.188235)
- o36.Position = Vector3.new(46.8207512, 11.6165257, 7.33545208)
- o36.Color = Color3.new(0.188235, 0.188235, 0.188235)
- o37.Name = "qCFrameWeldThingy"
- o37.Parent = o36
- o37.C1 = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o37.Part0 = o2
- o37.Part1 = o36
- o38.Name = "qRelativeCFrameWeldValue"
- o38.Parent = o36
- o38.Value = CFrame.new(-0.140956879, -0.0248775482, -0.120224953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o39.Parent = o1
- o39.Material = Enum.Material.Granite
- o39.BrickColor = BrickColor.new("Black")
- o39.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
- o39.CanCollide = false
- o39.Size = Vector3.new(1.49248588, 2.32164478, 0.414579421)
- o39.CFrame = CFrame.new(46.8207512, 11.6165257, 11.5392885, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o39.BottomSurface = Enum.SurfaceType.Smooth
- o39.TopSurface = Enum.SurfaceType.Smooth
- o39.Color = Color3.new(0.188235, 0.188235, 0.188235)
- o39.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
- o39.Color = Color3.new(0.188235, 0.188235, 0.188235)
- o40.Name = "qCFrameWeldThingy"
- o40.Parent = o39
- o40.C1 = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o40.Part0 = o2
- o40.Part1 = o39
- o41.Name = "qRelativeCFrameWeldValue"
- o41.Parent = o39
- o41.Value = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o42.Parent = o1
- o42.BrickColor = BrickColor.new("Really black")
- o42.Position = Vector3.new(46.8207512, 1.01158428, 9.45395088)
- o42.CanCollide = false
- o42.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o42.CFrame = CFrame.new(46.8207512, 1.01158428, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o42.BottomSurface = Enum.SurfaceType.Smooth
- o42.TopSurface = Enum.SurfaceType.Smooth
- o42.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o42.Position = Vector3.new(46.8207512, 1.01158428, 9.45395088)
- o42.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o43.Name = "qCFrameWeldThingy"
- o43.Parent = o42
- o43.C1 = CFrame.new(-0.140956879, 10.5800638, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o43.Part0 = o2
- o43.Part1 = o42
- o44.Name = "qRelativeCFrameWeldValue"
- o44.Parent = o42
- o44.Value = CFrame.new(-0.140956879, 10.5800638, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o45.Parent = o1
- o45.BrickColor = BrickColor.new("Really black")
- o45.Position = Vector3.new(46.8207512, 1.33495617, 9.45395088)
- o45.CanCollide = false
- o45.Size = Vector3.new(0.497495323, 0.199001431, 0.497495323)
- o45.CFrame = CFrame.new(46.8207512, 1.33495617, 9.45395088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o45.BottomSurface = Enum.SurfaceType.Smooth
- o45.TopSurface = Enum.SurfaceType.Smooth
- o45.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o45.Position = Vector3.new(46.8207512, 1.33495617, 9.45395088)
- o45.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o46.Name = "qCFrameWeldThingy"
- o46.Parent = o45
- o46.C1 = CFrame.new(-0.140956879, 10.2566919, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o46.Part0 = o2
- o46.Part1 = o45
- o47.Name = "qRelativeCFrameWeldValue"
- o47.Parent = o45
- o47.Value = CFrame.new(-0.140956879, 10.2566919, -2.23872375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o48.Name = "RAWeldP"
- o48.Parent = o1
- o48.Transparency = 1
- o48.Position = Vector3.new(46.9498253, 2.08000755, 8.63967896)
- o48.Rotation = Vector3.new(90, 0, -180)
- o48.CanCollide = false
- o48.Size = Vector3.new(1, 2, 1)
- o48.CFrame = CFrame.new(46.9498253, 2.08000755, 8.63967896, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- o48.BottomSurface = Enum.SurfaceType.Smooth
- o48.TopSurface = Enum.SurfaceType.Smooth
- o48.Position = Vector3.new(46.9498253, 2.08000755, 8.63967896)
- o48.Orientation = Vector3.new(90, 180, 0)
- o49.Name = "qCFrameWeldThingy"
- o49.Parent = o48
- o49.C1 = CFrame.new(0.270030975, 1.42445183, -9.51164055, -1, 0, -0, 0, 0, -1, 0, -1, -0)
- o49.Part0 = o2
- o49.Part1 = o48
- o50.Name = "qRelativeCFrameWeldValue"
- o50.Parent = o48
- o50.Value = CFrame.new(0.270030975, 1.42445183, -9.51164055, -1, 0, -0, 0, 0, -1, 0, -1, -0)
- o51.Name = "RAWeld"
- o51.Parent = o48
- o51.Part0 = o48
- o51.Part1 = RA
- o52.Parent = o1
- o52.Material = Enum.Material.Granite
- o52.BrickColor = BrickColor.new("Really black")
- o52.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
- o52.CanCollide = false
- o52.Size = Vector3.new(1.65831769, 2.48747659, 0.389704525)
- o52.CFrame = CFrame.new(46.8207512, 11.6165257, 11.5392885, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o52.BottomSurface = Enum.SurfaceType.Smooth
- o52.TopSurface = Enum.SurfaceType.Smooth
- o52.Color = Color3.new(0, 0, 0)
- o52.Position = Vector3.new(46.8207512, 11.6165257, 11.5392885)
- o52.Color = Color3.new(0, 0, 0)
- o53.Name = "qCFrameWeldThingy"
- o53.Parent = o52
- o53.C1 = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o53.Part0 = o2
- o53.Part1 = o52
- o54.Name = "qRelativeCFrameWeldValue"
- o54.Parent = o52
- o54.Value = CFrame.new(-0.140956879, -0.0248775482, -4.32406139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- --Attacks
- local attacks = 1
- local canwave = true
- local candamage = true
- local candamage2 = true
- local canattack = true
- function attack1()
- if canattack == true then
- canattack = false
- attacks = 2
- attack = true
- canwave = true
- for i = 1,20 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(-35),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(150),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- for i = 1,20 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(35),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- o33.Touched:Connect(function(tch)
- if tch.Parent.ClassName == "Model" and candamage == true then
- candamage = false
- tch.Parent.Humanoid.Health = 0
- elseif tch.Parent.Humanoid == nil then
- print("baiting")
- end
- end)
- attack = false
- canattack = true
- end
- end
- function attack2()
- if canattack == true then
- canattack = false
- attack = true
- for i = 1,20 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(50)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(120),math.rad(90),math.rad(120)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- for i = 1,40 do
- wait(0.01)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(100)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-100)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(90),math.rad(-90),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- o33.Touched:Connect(function(tch)
- if tch.Parent.ClassName == "Model" and candamage == true then
- candamage = false
- tch.Parent.Humanoid.Health = 0
- explosion(tch.Parent.Torso,tch.Parent.Torso.Position,1,100)
- elseif tch.Parent.Humanoid == nil then
- print("baiting")
- end
- end)
- attack = false
- canattack = true
- end
- end
- --keysconfig
- mouse.Button1Down:Connect(function()
- if attacks == 1 then
- attack1()
- attacks = 2
- candamage = true
- canattack = true
- elseif attacks == 2 then
- attack2()
- attacks = 1
- candamage2 = true
- canattack = true
- end
- end)
- --Animations
- local equipped = false
- local idle = 0
- local change = 1
- local val = 0
- local toim = 0
- local idleanim = 0.4
- ANIMATE.Parent = nil
- hum.WalkSpeed = 50
- hum.MaxHealth = "inf"
- hum.Health = "inf"
- hum.Animator.Parent = nil
- while true do
- wait(0.001)
- sine = sine + change
- local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = root.Velocity.y
- hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
- if equipped == true or equipped == false then
- if attack == false then
- idle = idle + 1
- else
- idle = 0
- end
- if 1 < root.Velocity.y and hitfloor == nil and attack == false then
- Anim = "Jump"
- change = 1
- RootJoint.C0 = Clerp(RootJoint.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
- tors.Neck.C0 = Clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
- RW.C0 = Clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
- LW.C0 = Clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
- LH.C0=Clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
- RH.C0=Clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
- elseif -1 > root.Velocity.y and hitfloor == nil and attack == false then
- Anim = "FaLL"
- change = 1
- RootJoint.C0 = Clerp(RootJoint.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
- tors.Neck.C0 = Clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
- RW.C0 = Clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3)
- LW.C0 = Clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3)
- LH.C0 = Clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
- RH.C0 = Clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
- elseif torvel < 1 and hitfloor ~= nil and attack == false then
- Anim = "Idle"
- change = 1
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 + 2 * math.rad(sine / 5)),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 30) ,0)*angles(math.rad(120),math.rad(10),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 30) ,0)*angles(math.rad(0),math.rad(0),math.rad(25)),.1)
- elseif torvel > 2 and torvel < 25 and hitfloor ~= nil and attack == false then
- Anim = "Walk"
- change = 2.6
- elseif torvel >= 25 and hitfloor ~= nil and attack == false then
- Anim = "Sprint"
- change = 3
- RootJoint.C0 = Clerp(RootJoint.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
- tors.Neck.C0 = Clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
- RH.C0 = Clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - RL.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
- LH.C0 = Clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + LL.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
- RW.C0 = Clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - RA.RotVelocity.Y / 75), 0.15)
- LW.C0 = Clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + LA.RotVelocity.Y / 75), 0.15)
- end
- end
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local DeLAy = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if 1 >= Thing[1].TRAnsparency then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50))
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Block3" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50)) + Vector3.new(0, 0.15, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Blood" then
- local Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Elec" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- elseif Thing[2] == "Shatter" then
- Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- -------------------------------------------------
- print("Done!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement