Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn("Made by Subaru112")
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- 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
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,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
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 0.03333333333333
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local sine = 0
- local change = 1
- --Effect Functions--
- Effects = {
- Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("BlockMesh",p)
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- if spin == true then
- p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- end
- end
- p:Destroy()
- end)()
- return p
- end,
- Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshType = "Sphere"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- end
- p:Destroy()
- end)()
- return p
- end,
- Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("CylinderMesh",p)
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- end
- p:Destroy()
- end)()
- return p
- end,
- Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = Vector3.new()
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "rbxassetid://20329976"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
- end
- p:Destroy()
- end)()
- return p
- end,
- Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = Vector3.new()
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "rbxassetid://3270017"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- end
- p:Destroy()
- end)()
- return p
- end,
- Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = Vector3.new()
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = meshid
- m.TextureId = textid
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
- end
- p:Destroy()
- end)()
- return p
- end,
- Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshType = "Sphere"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- p.CFrame = p.CFrame * CFrame.new(0,move,0)
- end
- p:Destroy()
- end)()
- return p
- end,
- }
- function GetDudesTorso(c)
- local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
- if torsy ~= nil then
- return torsy
- end
- end
- local plr = owner
- local char = plr.Character
- local chara = plr.Character
- local RootPart = chara.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local Create = LoadLibrary("RbxUtility").Create
- local debby = game:GetService("Debris")
- EffectModel = Create("Model"){
- Parent = chara,
- Name = "Effects",
- }
- function so(id,par,pit,vol)
- if par == chara then
- end
- end
- local Humanoid = char:FindFirstChildOfClass("Humanoid")
- local Torso,Head,LeftArm,RightArm,LeftLeg,RightLeg,Root = char.Torso,char.Head,char["Left Arm"],char["Right Arm"],char["Left Leg"],char["Right Leg"],char.HumanoidRootPart
- local neck,RH,LH,rootj,RS,LS = Torso.Neck,Torso["Right Hip"],Torso["Left Hip"],Root.RootJoint,Torso["Right Shoulder"],Torso["Left Shoulder"]
- local rootjn,neckn,RHn,LHn,LSn,RSn = rootj.C0,neck.C0,RH.C0,LH.C0,LS.C0,RS.C0
- local mus = Instance.new("Sound",char)
- local timepos = nil
- Humanoid.WalkSpeed = 16
- Humanoid.Animator.Parent = nil
- chara.Animate.Parent = nil
- local attack = false
- local Anim = 'Idle'
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- local gun = Instance.new("Part",char)
- gun.Size = Vector3.new(0.409, 1.641, 4.462)
- gun.Name = "MUSIC"
- gun.CanCollide = false
- local m = Instance.new("SpecialMesh",gun)
- m.MeshType = "FileMesh"
- m.Scale = Vector3.new(0.012, 0.012, 0.012)
- m.MeshId = "rbxassetid://623102664"
- m.TextureId = "rbxassetid://623102879"
- local w1 = Instance.new("Weld",char)
- w1.Part0 = RightArm
- w1.Part1 = gun
- w1.C0 = CFrame.new(12.3645887, 0, -1.1920929e-06, 0.939692497, 0, 0.342019767, -3.55271368e-15, 1, 0, -0.342020035, 0, 0.939692438)
- w1.C1 = CFrame.new(-3.99362731, 0.0831095576, 12.0897989, -0.163175926, -0.98480773, -0.0593911298, 0.342020124, -4.37113883e-08, -0.939692616, 0.92541647, -0.173648193, 0.33682403)
- local ShotPt = Instance.new("Part",char)
- ShotPt.Size = Vector3.new(1, 1, 1)
- ShotPt.Name = "MUSIC"
- ShotPt.CanCollide = false
- ShotPt.Transparency = 1
- local w2 = Instance.new("Weld",char)
- w2.Part0 = gun
- w2.Part1 = ShotPt
- w2.C0 = CFrame.new(-0.900000095, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2.C1 = CFrame.new(-1.52383852, 0.265500069, -0.012091063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- function Dmg(dude)
- if dude and dude ~= chara and dude.Name ~= "CKbackup" then
- if dude:FindFirstChild("TURAPPU") then return end
- local debounce = Instance.new("BoolValue",dude)
- debounce.Name = "TURAPPU"
- coroutine.wrap(function()
- local torsy = GetDudesTorso(dude)
- if torsy then
- local b = Instance.new("Part",dude)
- b.BrickColor = BrickColor.new("New Yeller")
- b.Size = Vector3.new(.1,.1,.1)
- b.CanCollide = false
- b.Transparency = 1
- b.Material = "Neon"
- b:BreakJoints()
- so(113952851,b,1,3)
- local bw = Instance.new("Weld",b)
- bw.Part0 = b
- bw.Part1 = torsy
- local bm = Instance.new("SpecialMesh",b)
- bm.MeshType = "Sphere"
- bm.Scale = Vector3.new()
- for i=0,1,.05 do
- swait()
- b.Transparency = 1-i
- bm.Scale = Vector3.new(65*i,65*i,65*i)
- end
- coroutine.wrap(function()
- swait(20)
- for i=0,1,.05 do
- swait()
- b.Transparency = i
- bm.Scale = Vector3.new(65+100*i,65+100*i,65+100*i)
- end
- b:Destroy()
- end)()
- end
- for i,v in pairs(dude:children()) do
- if v.ClassName == "CharacterMesh" or v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- if v:IsA("Clothing") or v:IsA("BodyColors") or v:IsA("Accoutrement") then v:Destroy() end
- end
- local color = {"Really red","Really blue","Magenta","White","Cool yellow"}
- local hedcol = BrickColor.new("Really blue")
- local bcols = Instance.new("BodyColors",dude)
- bcols.Name = "NeoCols"
- bcols.HeadColor = BrickColor.new(color[math.random(1,#color)])
- bcols.LeftArmColor = BrickColor.new(color[math.random(1,#color)])
- bcols.RightArmColor = BrickColor.new(color[math.random(1,#color)])
- bcols.TorsoColor = BrickColor.new(color[math.random(1,#color)])
- bcols.LeftLegColor = BrickColor.new(color[math.random(1,#color)])
- bcols.RightLegColor = BrickColor.new(color[math.random(1,#color)])
- for i,v in pairs(dude:children()) do
- if v.ClassName == "MeshPart" or v.ClassName == "Part" then
- v.Material = "Neon"
- end
- end
- if dude:FindFirstChild("Head") then
- for i,v in pairs(dude:FindFirstChild("Head"):GetChildren()) do
- if v.ClassName == "Decal" then
- v:Destroy()
- end
- end
- end
- local enemy = dude:FindFirstChildOfClass("Humanoid")
- enemy.MaxHealth = 1
- enemy.Health = 1
- coroutine.wrap(function()
- swait(40)
- local naeeym2 = Instance.new("BillboardGui")
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude:FindFirstChild("Head")
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Cartoon"
- tecks2.TextSize = 24
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,.6,.7)
- tecks2.TextStrokeColor3 = Color3.new(1,1,1)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- swait(10)
- for i = 0,1,.05 do
- swait()
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
- tecks2.TextStrokeTransparency = i
- tecks2.TextTransparency = i
- end
- naeeym2:Destroy()
- end)()
- end)()
- end
- end
- function Dmg4(dude)
- if dude and dude ~= chara and dude.Name ~= "CKbackup" then
- coroutine.wrap(function()
- local torsy = GetDudesTorso(dude)
- if torsy then
- coroutine.wrap(function()
- swait(20)
- for i=0,1,.05 do
- swait()
- end
- end)()
- end
- local enemy = dude:FindFirstChildOfClass("Humanoid")
- enemy.Health = enemy.Health - 10
- coroutine.wrap(function()
- swait(40)
- local naeeym2 = Instance.new("BillboardGui")
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude:FindFirstChild("Head")
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = "OOF"
- tecks2.Font = "Cartoon"
- tecks2.TextSize = 24
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,.6,.7)
- tecks2.TextStrokeColor3 = Color3.new(1,1,1)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- swait(10)
- for i = 0,1,.05 do
- swait()
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
- tecks2.TextStrokeTransparency = i
- tecks2.TextTransparency = i
- end
- naeeym2:Destroy()
- end)()
- end)()
- end
- end
- function Dmg3(dude)
- if dude and dude ~= chara and dude.Name ~= "CKbackup" then
- coroutine.wrap(function()
- local torsy = GetDudesTorso(dude)
- if torsy then
- coroutine.wrap(function()
- swait(20)
- for i=0,1,.05 do
- swait()
- end
- end)()
- end
- local enemy = dude:FindFirstChildOfClass("Humanoid")
- enemy.Health = enemy.Health - 20
- coroutine.wrap(function()
- swait(40)
- local naeeym2 = Instance.new("BillboardGui")
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude:FindFirstChild("Head")
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = "Oof"
- tecks2.Font = "Cartoon"
- tecks2.TextSize = 24
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,.6,.7)
- tecks2.TextStrokeColor3 = Color3.new(1,1,1)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- swait(10)
- for i = 0,1,.05 do
- swait()
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
- tecks2.TextStrokeTransparency = i
- tecks2.TextTransparency = i
- end
- naeeym2:Destroy()
- end)()
- end)()
- end
- end
- function Dmg2(dude)
- if dude and dude ~= chara and dude.Name ~= "CKbackup" then
- if dude:FindFirstChild("MUSIClol") then return end
- local debounce = Instance.new("BoolValue",dude)
- debounce.Name = "MUSIClol"
- coroutine.wrap(function()
- local torsy = GetDudesTorso(dude)
- if torsy then
- coroutine.wrap(function()
- swait(20)
- for i=0,1,.05 do
- swait()
- end
- end)()
- end
- local tors = (dude:findFirstChild("Torso") or dude:findFirstChild("UpperTorso"))
- for i,v in pairs(dude:children()) do
- if v.ClassName == "CharacterMesh" then
- v:Destroy()
- end
- end
- local rop = Instance.new("Part",dude)
- rop.Name = "Rope"
- rop.Material = "DiamondPlate"
- rop.BrickColor = BrickColor.new("New Yeller")
- rop.Size = Vector3.new(4.2,0.5,1.1)
- local w = Instance.new("Weld",dude)
- w.Part1 = rop
- if tors then
- w.Part0 = tors
- end
- local enemy = dude:FindFirstChildOfClass("Humanoid")
- for i,v in pairs(enemy:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- if enemy:FindFirstChildOfClass("Animator") then
- enemy:FindFirstChildOfClass("Animator").Parent = nil
- end
- for i,v in pairs(dude:children()) do
- if v.ClassName == "Script" or v.ClassName == "ModuleScript" or v.ClassName == "LocalScript" then
- v:Destroy()
- end
- end
- local RA,LA,RL,LL = dude:FindFirstChild("Right Arm"),dude:FindFirstChild("Left Arm"),dude:FindFirstChild("Right Leg"),dude:FindFirstChild("Left Leg")
- local w = Instance.new("Weld",tors)
- w.Part0 = tors
- w.Part1 = dude:FindFirstChild("Head")
- w.C0 = CFrame.new(0,1.5,0)
- if RA then
- local w = Instance.new("Weld",tors)
- w.Part0 = tors
- w.Part1 = RA
- w.C0 = CFrame.new(1.5,0,0)
- end
- if LA then
- local w = Instance.new("Weld",tors)
- w.Part0 = tors
- w.Part1 = LA
- w.C0 = CFrame.new(-1.5,0,0)
- end
- if RL then
- local w = Instance.new("Weld",tors)
- w.Part0 = tors
- w.Part1 = RL
- w.C0 = CFrame.new(-0.5,-2,0)
- end
- if LL then
- local w = Instance.new("Weld",tors)
- w.Part0 = tors
- w.Part1 = LL
- w.C0 = CFrame.new(0.5,-2,0)
- end
- enemy.MaxHealth = 1
- enemy.Health = 1
- enemy.PlatformStand = true
- coroutine.wrap(function()
- swait(40)
- local naeeym2 = Instance.new("BillboardGui")
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude:FindFirstChild("Head")
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = "Rope"
- tecks2.Font = "Cartoon"
- tecks2.TextSize = 24
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,.6,.7)
- tecks2.TextStrokeColor3 = Color3.new(1,1,1)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- swait(10)
- for i = 0,1,.05 do
- swait()
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
- tecks2.TextStrokeTransparency = i
- tecks2.TextTransparency = i
- end
- naeeym2:Destroy()
- end)()
- end)()
- end
- end
- function MagnitudeDmg4(par,magni)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
- local head = GetDudesTorso(c)
- if head ~= nil then
- local targ = head.Position - par.Position
- local mag = targ.magnitude
- if magni >= mag and c ~= chara then
- Dmg4(c)
- end
- end
- end
- end
- end
- function MagnitudeDmg3(par,magni)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
- local head = GetDudesTorso(c)
- if head ~= nil then
- local targ = head.Position - par.Position
- local mag = targ.magnitude
- if magni >= mag and c ~= chara then
- Dmg3(c)
- end
- end
- end
- end
- end
- function MagnitudeDmg2(par,magni)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
- local head = GetDudesTorso(c)
- if head ~= nil then
- local targ = head.Position - par.Position
- local mag = targ.magnitude
- if magni >= mag and c ~= chara then
- Dmg2(c)
- end
- end
- end
- end
- end
- function MagnitudeDmg(par,magni)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
- local head = GetDudesTorso(c)
- if head ~= nil then
- local targ = head.Position - par.Position
- local mag = targ.magnitude
- if magni >= mag and c ~= chara then
- Dmg(c)
- end
- end
- end
- end
- end
- Mouse.Button1Down:connect(function()
- shoot()
- end)
- zhold = false
- function shoot()
- attack = true
- for i=0,1,.3 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .6, true)
- end
- Humanoid.WalkSpeed = 2
- local ref = Instance.new("Part",chara)
- ref.Size = Vector3.new(0,0,0)
- ref.Anchored = true
- ref.CanCollide = false
- ref.Transparency = 1
- repeat
- so(1145251796,ShotPt,math.random(95,105)/100,3)
- ref.CFrame = Mouse.Hit
- MagnitudeDmg(ref,2)
- Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
- Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- wait(0.5)
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
- CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- until zhold == false
- ref:Destroy()
- Humanoid.WalkSpeed = 16
- attack = false
- end
- Mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k=='e' then
- if attack == false then
- shoot3()
- end
- elseif k=='q' then
- shoot2()
- elseif k=='f' then
- shoot4()
- end
- end)
- function shoot2()
- attack = true
- for i=0,1,.3 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .6, true)
- end
- Humanoid.WalkSpeed = 2
- local ref = Instance.new("Part",chara)
- ref.Size = Vector3.new(0,0,0)
- ref.Anchored = true
- ref.CanCollide = false
- ref.Transparency = 1
- repeat
- so(1145251796,ShotPt,math.random(95,105)/100,3)
- ref.CFrame = Mouse.Hit
- MagnitudeDmg2(ref,5)
- Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
- Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- wait(0.5)
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
- CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- until zhold == false
- ref:Destroy()
- Humanoid.WalkSpeed = 16
- attack = false
- end
- function shoot3()
- attack = true
- for i=0,1,.3 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .6, true)
- end
- Humanoid.WalkSpeed = 2
- local ref = Instance.new("Part",chara)
- ref.Size = Vector3.new(0,0,0)
- ref.Anchored = true
- ref.CanCollide = false
- ref.Transparency = 1
- repeat
- so(1145251796,ShotPt,math.random(95,105)/100,3)
- ref.CFrame = Mouse.Hit
- MagnitudeDmg3(ref,2)
- Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
- Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- wait(0.5)
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- until zhold == false
- ref:Destroy()
- Humanoid.WalkSpeed = 16
- attack = false
- end
- function shoot4()
- attack = true
- for i=0,1,.3 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .6, true)
- end
- Humanoid.WalkSpeed = 2
- local ref = Instance.new("Part",chara)
- ref.Size = Vector3.new(0,0,0)
- ref.Anchored = true
- ref.CanCollide = false
- ref.Transparency = 1
- repeat
- so(1145251796,ShotPt,math.random(95,105)/100,3)
- ref.CFrame = Mouse.Hit
- for i = 1,5 do
- MagnitudeDmg4(ref,5)
- Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
- Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
- end
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- wait(0.5)
- for i=0,1,.5 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0),
- CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
- CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, true)
- end
- until zhold == false
- ref:Destroy()
- Humanoid.WalkSpeed = 16
- attack = false
- end
- while game:GetService("RunService").Heartbeat:Wait() do
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
- CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
- CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
- CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
- CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
- CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
- }, .3, false)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
- CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
- CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
- CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
- CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
- CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
- }, .3, false)
- end
- elseif Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if attack == false then
- change = 1
- PlayAnimationFromTable({
- CFrame.new(-0.0769465268, -7.7815578e-08, -0.031559173, 0.939695537, 1.01607293e-06, 0.342021346, 7.9855522e-07, 1.00000191, 5.12654879e-07, -0.342019558, 2.16066837e-07, 0.939692855) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
- CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
- CFrame.new(1.57336235, 0.919147968, -0.523208618, 0.896280468, -0.417211801, 0.15038389, -0.0958181247, -0.513258576, -0.852868378, 0.433012635, 0.749999881, -0.500000179),
- CFrame.new(-1.54149628, 0.128171444, 0.108856201, 0.925416529, 0.336824089, 0.173648179, -0.342020094, 0.939692557, 6.25277607e-13, -0.163175896, -0.0593911633, 0.98480773),
- CFrame.new(0.500003159, -2.00000715, -1.98185444e-06, 0.939692736, 0, -0.342019916, 0, 1, 0, 0.342019886, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
- CFrame.new(-0.500018835, -2.0000062, 2.08616257e-07, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
- }, .3, false)
- end
- elseif Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- Humanoid.WalkSpeed = 16
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
- CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
- CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
- CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
- CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
- }, .3, false)
- end
- end
- if mus.Parent == char then
- mus.SoundId = "rbxassetid://171914461"
- mus.Volume = 2
- mus.Pitch = 1
- mus.Playing = true
- mus.Looped = true
- timepos = mus.TimePosition
- else
- mus = Instance.new("Sound",char)
- mus.TimePosition = timepos
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement