Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn("Made by Subaru112.")
- print("Enjoy!")
- script:ClearAllChildren()
- -------------------------------------------------------------------------------------------------------------------
- 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
- -------------------------------------------------------------------------------------------------------------------
- local mus = Instance.new("Sound",owner.Character)
- game.Debris:AddItem(mus,0.05)
- 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 clerp(a, b, t)
- return a:lerp(b, t)
- 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
- local plr = owner
- local char = plr.Character
- local chara = char
- angles = CFrame.Angles
- Rad = math.rad
- local RootPart = chara.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local Create = LoadLibrary("RbxUtility").Create
- local debby = game:GetService("Debris")
- local Humanoid = char:FindFirstChildOfClass("Humanoid")
- Humanoid.WalkSpeed = 16
- Humanoid.Animator.Parent = nil
- chara.Animate.Parent = nil
- local mode = 'Insane'
- local SongID = 1470848774
- local attack = false
- local Anim = 'Idle'
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local found = false
- Humanoid.MaxHealth = 100000000000000000000000000
- 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 ff = Instance.new("ForceField",char)
- ff.Visible = false
- Humanoid.BreakJointsOnDeath = false
- EffectModel = Create("Model"){
- Parent = chara,
- Name = "Effects",
- }
- 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,
- }
- Head:FindFirstChildOfClass("Decal"):Destroy()
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- 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 = "Kill"
- gun.CanCollide = false
- gun.BrickColor = BrickColor.new("Really black")
- gun.Transparency = 0
- local m = Instance.new("SpecialMesh",gun)
- m.MeshType = "FileMesh"
- m.Scale = Vector3.new(0.012, 0.012, 0.012)
- m.MeshId = "rbxassetid://623102664"
- 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 = "PT"
- 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)
- -- CFrame.new(1.41317558, 0.534107685, -0.455181122, 0.98480773, 0, 0.173648179, 0.172987401, -0.0871557668, -0.981060266, 0.0151344398, 0.99619472, -0.085831672) --
- function shoot(banish)
- if banish:FindFirstChild("Torso") or banish:FindFirstChild("UpperTorso") then
- attack = true
- Humanoid.WalkSpeed = 2
- local tors = banish:FindFirstChild("Torso") or banish:FindFirstChild("UpperTorso")
- for i=0,1,.3 do
- swait()
- 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, 1.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
- CFrame.new(1.41317558, 0.534107685, -0.455181122, 0.98480773, 0, 0.173648179, 0.172987401, -0.0871557668, -0.981060266, 0.0151344398, 0.99619472, -0.085831672),
- CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
- 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),
- }, .5, false)
- end
- Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",true,false,.1)
- Effects.Block(CFrame.new((ShotPt.Position + tors.Position)/2,tors.Position),Vector3.new(1,1,(ShotPt.Position - tors.Position).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Glass","Really blue",false,false,.1)
- Effects.Block(tors.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",true,false,.1)
- Banish(banish)
- wait(0.5)
- Humanoid.WalkSpeed = 16
- attack = false
- elseif banish:FindFirstChild("Torso") == nil or banish:FindFirstChild("UpperTorso") == nil and banish ~= workspace then
- attack = true
- Humanoid.WalkSpeed = 2
- for i=0,1,.3 do
- swait()
- 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, 1.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
- CFrame.new(1.41317558, 0.534107685, -0.455181122, 0.98480773, 0, 0.173648179, 0.172987401, -0.0871557668, -0.981060266, 0.0151344398, 0.99619472, -0.085831672),
- CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
- 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),
- }, .5, false)
- end
- Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",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),"Glass","Really blue",false,false,.1)
- Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Glass","Really blue",true,false,.1)
- Banish2(banish)
- wait(0.5)
- Humanoid.WalkSpeed = 16
- attack = false
- end
- end
- function GetDudesTorso(c)
- local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
- if torsy ~= nil then
- return torsy
- end
- end
- Mouse.Button1Down:connect(function()
- if Mouse.Target and Mouse.Target.Parent then
- shoot(Mouse.Target.Parent)
- end
- end)
- local TOBANISH = {}
- function Banish(Banished)
- table.insert(TOBANISH,Banished.Name)
- goodbye(Banished.Name)
- Banished.Archivable = true
- local CLONE = Banished:Clone()
- Banished:Destroy()
- CLONE.Parent = EffectModel
- CLONE:BreakJoints()
- local MATERIALS = {"Glass","Neon"}
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Transparency = c.Transparency + 0.2
- c.Material = MATERIALS[math.random(1,2)]
- c.Color = Color3.new(0, 0, 0)
- if c.ClassName == "MeshPart" then
- c.TextureID = ""
- end
- if c:FindFirstChildOfClass("SpecialMesh") then
- c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
- end
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal"):remove()
- end
- c.Name = "Banished"
- c.CanCollide = false
- else
- c:remove()
- end
- end
- local A = false
- for i = 1, 35 do
- if A == false then
- A = true
- elseif A == true then
- A = false
- end
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Material = MATERIALS[math.random(1,2)]
- c.Transparency = c.Transparency + 0.8/35
- if A == false then
- c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
- elseif A == true then
- c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
- end
- end
- end
- swait()
- end
- CLONE:remove()
- end
- function goodbye(Name)
- local MESSAGES = {"Goodbye ","Bye ","We don't need you ","You're banished "}
- warn(MESSAGES[math.random(1,#MESSAGES)]..Name..".")
- end
- local TOBANISH2 = {}
- function Banish2(Banished)
- if Banished ~= workspace then
- table.insert(TOBANISH2,Banished.Name)
- goodbye(Banished.Name)
- Banished.Archivable = true
- local CLONE = Banished:Clone()
- Banished:Destroy()
- CLONE.Parent = EffectModel
- if CLONE.ClassName ~= "Accessory" and CLONE.ClassName ~= "Hat" and CLONE.ClassName ~= "Tool" then
- CLONE:BreakJoints()
- end
- local MATERIALS = {"Glass","Neon"}
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Transparency = c.Transparency + 0.2
- c.Material = MATERIALS[math.random(1,2)]
- c.Color = Color3.new(0, 0, 0)
- if c.ClassName == "MeshPart" then
- c.TextureID = ""
- end
- if c:FindFirstChildOfClass("SpecialMesh") then
- c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
- end
- if c:FindFirstChildOfClass("Decal") then
- c:FindFirstChildOfClass("Decal"):remove()
- end
- c.Name = "Banished"
- c.CanCollide = false
- else
- c:remove()
- end
- end
- local A = false
- for i = 1, 35 do
- if A == false then
- A = true
- elseif A == true then
- A = false
- end
- for _, c in pairs(CLONE:GetDescendants()) do
- if c:IsA("BasePart") then
- c.Anchored = true
- c.Material = MATERIALS[math.random(1,2)]
- c.Transparency = c.Transparency + 0.8/35
- if A == false then
- c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
- elseif A == true then
- c.CFrame = c.CFrame*CFrame.new(math.random(-45,45)/45,math.random(-45,45)/45,math.random(-45,45)/45)
- end
- end
- end
- swait()
- end
- CLONE:remove()
- end
- end
- workspace.ChildAdded:connect(function(instance)
- for BANISH = 1, #TOBANISH do
- if TOBANISH[BANISH] ~= nil then
- if instance.Name == TOBANISH[BANISH] then
- coroutine.resume(coroutine.create(function()
- goodbye(instance.Name)
- instance:ClearAllChildren()
- game.Debris:AddItem(instance,0.0010)
- end))
- end
- end
- end
- end)
- local song = 1
- local trail = false
- Mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k=='e' then
- if song == 1 then
- song = 2
- SongID = 1600388782
- mus.TimePosition = 0
- elseif song == 2 then
- song = 1
- SongID = 1470848774
- mus.TimePosition = 0
- end
- elseif k=='q' then
- trail = not trail
- end
- end)
- -- Animations
- while game:GetService("RunService").Heartbeat:Wait() do
- Humanoid.JumpPower = 50
- Humanoid.MaxHealth = 1000000000000000000000000000000
- Humanoid.Health = Humanoid.MaxHealth
- 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, 1.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
- CFrame.new(0.780210495, 0.194723606, 0.390228271, 0.642787576, 0.766044378, 0, -0.492403805, 0.413175821, 0.766044497, 0.586824119, -0.492403895, 0.642787516),
- CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
- 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),
- }, .1, false)
- local shake = math.random(1,10)
- if shake == 5 then
- Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.4, -0.3, 1, -8.74227766e-08, 0, 0, 0, 1, -8.74227766e-08, -1, 0) * angles(Rad(45), Rad(0), Rad(-20)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.4, -0.3, 1, -8.74227766e-08, 0, 0, 0, 1, -8.74227766e-08, -1, 0) * CFrame.new(0, 0, 0 + ((1) - 1)) * angles(Rad(45 + math.random(-4,4)), Rad(math.random(-4,4)), Rad(-20 + math.random(-4,4))), 1)
- end
- 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.52556515, -0.222141266, 1, 0, 0, 0, 0.965925753, 0.258819461, 0, -0.258819461, 0.965925753),
- CFrame.new(0.780210495, 0.194723606, 0.390228271, 0.642787576, 0.766044378, 0, -0.492403805, 0.413175821, 0.766044497, 0.586824119, -0.492403895, 0.642787516),
- CFrame.new(-0.902302742, 0.228387356, 0.45406723, 0.571393847, -0.819151998, 0.0499903709, 0.515395641, 0.405579865, 0.754898906, -0.638652086, -0.405579776, 0.653933227),
- 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 trail == true then
- local c = Instance.new("Model",workspace)
- c.Name = "Trail"
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Accessory" and v.Handle then
- local vc = Instance.new("Part",c)
- vc.Size = v.Handle.Size
- vc.CFrame = v.Handle.CFrame
- if v.Handle:FindFirstChildOfClass("SpecialMesh") then
- local mc = v.Handle:FindFirstChildOfClass("SpecialMesh"):Clone()
- mc.Parent = vc
- end
- vc.BrickColor = BrickColor.new("Really black")
- vc.Anchored = true
- vc:BreakJoints()
- vc.Transparency = 0.5
- vc.CanCollide = false
- vc.BottomSurface = Enum.SurfaceType.Smooth
- vc.TopSurface = Enum.SurfaceType.Smooth
- end
- if v.ClassName == "Part" and v.Name ~= "PT" and v.Name ~= "HumanoidRootPart" then
- local vc = Instance.new("Part",c)
- vc.Size = v.Size
- vc.CFrame = v.CFrame
- if v:FindFirstChildOfClass("SpecialMesh") then
- local mc = v:FindFirstChildOfClass("SpecialMesh"):Clone()
- mc.Parent = vc
- end
- vc.BrickColor = BrickColor.new("Really black")
- vc.Anchored = true
- vc:BreakJoints()
- vc.Transparency = 0.5
- vc.CanCollide = false
- vc.BottomSurface = Enum.SurfaceType.Smooth
- vc.TopSurface = Enum.SurfaceType.Smooth
- end
- end
- game.Debris:AddItem(c,0.0000000000000000000000000000000000000000000000000000001)
- end
- if mus.Parent == char then
- mus.SoundId = "rbxassetid://"..SongID
- mus.Volume = 2
- mus.Pitch = 1
- mus.Playing = true
- mus.Looped = true
- timepos = mus.TimePosition
- else
- mus = Instance.new("Sound",char)
- mus.TimePosition = timepos
- local s = math.random(1,2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement