Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = owner.Character
- local BillboardGui = Instance.new("BillboardGui")
- local TextLabel = Instance.new("TextLabel")
- local inv = false
- BillboardGui.Name = "tag"
- BillboardGui.Parent = char.Head
- BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui.AlwaysOnTop = false
- BillboardGui.ExtentsOffset = Vector3.new(0, 3, 0)
- BillboardGui.LightInfluence = 1
- BillboardGui.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Parent = BillboardGui
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Insane"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- -- cool color beam.Color = ColorSequence.new(Color3.fromRGB(99, 242, 255))
- char:FindFirstChild("Animate"):Destroy()
- local hum = char:FindFirstChildOfClass("Humanoid")
- local idleanim = Instance.new("Animation")
- idleanim.Name = "Roblox Idle Animation"
- idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- local idleanimplay = hum:LoadAnimation(idleanim)
- idleanimplay:Play()
- if not(char:FindFirstChild("Animate") == nil) then
- char.Animate:Destroy()
- end
- hum.WalkSpeed = 13
- warn("Script made by Subaru112")
- warn("Moves in output soon")
- mus = Instance.new("Sound",char)
- mus:Destroy()
- --This script is made by Subaru112.
- local plr = owner
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- local remote = Instance.new("RemoteEvent", char)
- remote.Name = "ReplicationEvent"
- local client = NLS([==[
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
- spawn(function()
- while game:GetService("RunService").Heartbeat:Wait() do
- remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
- if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
- remote:FireServer(1, input.KeyCode)
- end
- end)
- mouse.Button1Down:Connect(function()
- remote:FireServer(2)
- end)
- remote.OnClientEvent:Connect(function()
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
- end)
- ]==], char)
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local rootj = char.HumanoidRootPart.RootJoint
- local neck = char.Torso.Neck
- local throwbutton = false
- local throw = false
- local normalanim = true
- local attackd = false
- local animpose = "Idle"
- local timepos = nil
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local necknor = neck.C0
- local rootjnor = rootj.C0
- local a0 = Instance.new("Attachment",char.Torso)
- a0.WorldOrientation = Vector3.new(-90, -90, 0)
- a0.WorldPosition = Vector3.new(-6.389, 5, -23.975)
- a0.Position = Vector3.new(0, 0, 0.5)
- a0.Orientation = Vector3.new(-90, -90, 0)
- a0.WorldAxis = Vector3.new(0, 0, 1)
- a0.Axis = Vector3.new(0, 0, 1)
- a0.SecondaryAxis = Vector3.new(1, 0, 0)
- a0.WorldSecondaryAxis = Vector3.new(1, 0, 0)
- ---------------------------------
- -------------Attacks-------------
- ---------------------------------
- remote.OnServerEvent:Connect(function(Player, number, key)
- if number == 1 and plr.Name == Player.Name and attackd == false then
- if key == Enum.KeyCode.Z then
- attackd = true
- local bull5 = Instance.new("Part",workspace)
- bull5.Name = "Bullet"
- bull5.BrickColor = BrickColor.new("White")
- bull5.Size = Vector3.new(2,2,2)
- bull5.Transparency = 1
- bull5.CanCollide = false
- bull5.CFrame = char.Torso.CFrame
- bull5.Velocity = Vector3.new(0,15,0) + char.HumanoidRootPart.CFrame.LookVector * 600
- bull5.Touched:Connect(function(hit)
- if hit.Parent then
- local character = hit.Parent
- if not(character == char or hit.Name == "Bullet") then
- if not(hit.Name == "Base" or hit.Name == "Baseplate") then
- local character = hit.Parent
- local k = Instance.new("Model",char)
- for i,hit in pairs(character:GetChildren()) do
- if hit.ClassName == "MeshPart" or hit.ClassName == "Part" then
- if hit.Name == "LowerTorso" or hit.Name == "Torso" or hit.Name == "Head" or hit.Name == "UpperTorso" or hit.Name == "Right Arm" or hit.Name == "Left Arm" or hit.Name == "Left Leg" or hit.Name == "Right Leg" or hit.Name == "LeftHand" or hit.Name == "LeftLowerArm" or hit.Name == "LeftUpperArm" or hit.Name == "RightHand" or hit.Name == "RightUpperArm" or hit.Name == "RightLowerArm" or hit.Name == "LeftUpperLeg" or hit.Name == "LeftLowerLeg" or hit.Name == "LeftFoot" or hit.Name == "RightFoot" or hit.Name == "RightUpperLeg" or hit.Name == "RightLowerLeg" then
- for i,f in pairs(hit:GetChildren()) do
- f:Destroy()
- end
- local bdpos = Instance.new("BodyPosition",hit)
- bdpos.Position = hit.Position + Vector3.new(math.random(-5,5),math.random(1,5),math.random(-5,5))
- hit.Parent = k
- hit.Name = "kill"
- local a1 = Instance.new("Attachment",hit)
- a1.WorldOrientation = Vector3.new(-0, -30, -90)
- a1.WorldPosition = Vector3.new(-5.433, 9, -38.616)
- a1.Position = Vector3.new(0, 0, 0)
- a1.Orientation = Vector3.new(0, 0, -90)
- a1.WorldAxis = Vector3.new(0, -1, 0)
- a1.Axis = Vector3.new(0, -1, 0)
- a1.SecondaryAxis = Vector3.new(1, 0, 0)
- a1.WorldSecondaryAxis = Vector3.new(0.866, 0, 0.5)
- local beam = Instance.new("Beam",hit)
- beam.Attachment0 = a0
- beam.Attachment1 = a1
- beam.Segments = 100
- beam.Width0 = 0.08
- beam.Width1 = 0.05
- beam.CurveSize0 = 10
- beam.CurveSize1 = 10
- beam.Transparency = NumberSequence.new(0)
- beam.LightEmission = 1
- hit.Material = "Neon"
- hit.BrickColor = BrickColor.new("White")
- hit.Anchored = false
- hit.CanCollide = true
- hit:BreakJoints()
- hit.Transparency = 0
- end
- end
- end
- wait(0.5)
- for i = 1,30 do
- wait(0.001)
- for i,s in pairs(k:GetChildren()) do
- s.Transparency = s.Transparency + i/30
- end
- end
- k:Destroy()
- end
- end
- end
- end)
- attackd = false
- end
- if key == Enum.KeyCode.B then
- attackd = true
- local bull5 = Instance.new("Part",workspace)
- bull5.Name = "Bullet"
- bull5.BrickColor = BrickColor.new("White")
- bull5.Size = Vector3.new(2,2,2)
- bull5.Transparency = 1
- bull5.CanCollide = false
- bull5.CFrame = char.Torso.CFrame
- bull5.Velocity = Vector3.new(0,15,0) + char.HumanoidRootPart.CFrame.LookVector * 600
- bull5.Touched:Connect(function(hit)
- if hit.Parent then
- local character = hit.Parent
- if not(character == char or hit.Name == "Bullet") then
- if not(hit.Name == "Base" or hit.Name == "Baseplate") then
- if character ~= char then
- local character = hit.Parent
- local fire = character:FindFirstChild("Head")
- local hum = character:FindFirstChildOfClass("Humanoid")
- if hum then
- if not(hum.Parent == char) then
- local t = hum.Parent:findFirstChild("Torso")
- local t2 = hum.Parent:findFirstChild("UpperTorso")
- if t2 then
- for i,v in pairs(t2:GetChildren()) do
- if v.Name == "c" then
- v:Destroy()
- end
- end
- local c = Instance.new("Part",t2)
- c.BrickColor = BrickColor.new("Really black")
- c.Size = Vector3.new(5,2.5,5)
- c.CFrame = t2.CFrame - Vector3.new(0,4,0)
- c.Material = "Neon"
- c.Size = Vector3.new(0.1,2.5,0.1)
- c.CanCollide = false
- c.Anchored = true
- c.Name = "c"
- t2.Anchored = true
- for i = 1,10 do
- wait(0.0001)
- c.Size = c.Size + Vector3.new(0.5,0,0.5)
- end
- wait(0.5)
- for i = 1,30 do
- wait(0.00000000001)
- t2.CFrame = t2.CFrame - Vector3.new(0,0.2,0)
- end
- c:Destroy()
- if hum.Parent then
- for i,v in pairs(character:GetChildren()) do
- v:Destroy()
- end
- end
- end
- if t then
- for i,v in pairs(t:GetChildren()) do
- if v.Name == "c" then
- v:Destroy()
- end
- end
- local c = Instance.new("Part",t)
- c.BrickColor = BrickColor.new("Really black")
- c.Size = Vector3.new(5,2.5,5)
- c.CFrame = t.CFrame - Vector3.new(0,4,0)
- c.Material = "Neon"
- c.Size = Vector3.new(0.1,2.5,0.1)
- c.CanCollide = false
- c.Anchored = true
- c.Name = "c"
- t.Anchored = true
- for i = 1,10 do
- wait(0.0001)
- c.Size = c.Size + Vector3.new(0.5,0,0.5)
- end
- wait(0.5)
- for i = 1,30 do
- wait(0.00000000001)
- t.CFrame = t.CFrame - Vector3.new(0,0.2,0)
- end
- c:Destroy()
- if hum.Parent then
- for i,v in pairs(character:GetChildren()) do
- v:Destroy()
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
- attackd = false
- end
- if key == Enum.KeyCode.F then
- attackd = true
- local bull5 = Instance.new("Part",workspace)
- bull5.Name = "Bullet"
- bull5.BrickColor = BrickColor.new("White")
- bull5.Size = Vector3.new(2,2,2)
- bull5.Transparency = 1
- bull5.CanCollide = false
- bull5.CFrame = char.Torso.CFrame
- bull5.Velocity = Vector3.new(0,15,0) + char.HumanoidRootPart.CFrame.LookVector * 600
- bull5.Touched:Connect(function(hit)
- if hit.Parent then
- local character = hit.Parent
- if not(character == char or hit.Name == "Bullet") then
- if not(hit.Name == "Base" or hit.Name == "Baseplate") then
- local character = hit.Parent
- local k = Instance.new("Model",char)
- for i,hit in pairs(character:GetChildren()) do
- if hit.ClassName == "MeshPart" or hit.ClassName == "Part" then
- if hit.Name == "LowerTorso" or hit.Name == "Torso" or hit.Name == "Head" or hit.Name == "UpperTorso" or hit.Name == "Right Arm" or hit.Name == "Left Arm" or hit.Name == "Left Leg" or hit.Name == "Right Leg" or hit.Name == "LeftHand" or hit.Name == "LeftLowerArm" or hit.Name == "LeftUpperArm" or hit.Name == "RightHand" or hit.Name == "RightUpperArm" or hit.Name == "RightLowerArm" or hit.Name == "LeftUpperLeg" or hit.Name == "LeftLowerLeg" or hit.Name == "LeftFoot" or hit.Name == "RightFoot" or hit.Name == "RightUpperLeg" or hit.Name == "RightLowerLeg" then
- for i,f in pairs(hit:GetChildren()) do
- f:Destroy()
- end
- local bdpos = Instance.new("BodyPosition",hit)
- bdpos.Position = hit.Position + Vector3.new(math.random(-5,5),math.random(1,5),math.random(-5,5))
- hit.Parent = k
- hit.Name = "kill"
- local a1 = Instance.new("Attachment",hit)
- a1.WorldOrientation = Vector3.new(-0, -30, -90)
- a1.WorldPosition = Vector3.new(-5.433, 9, -38.616)
- a1.Position = Vector3.new(0, 0, 0)
- a1.Orientation = Vector3.new(0, 0, -90)
- a1.WorldAxis = Vector3.new(0, -1, 0)
- a1.Axis = Vector3.new(0, -1, 0)
- a1.SecondaryAxis = Vector3.new(1, 0, 0)
- a1.WorldSecondaryAxis = Vector3.new(0.866, 0, 0.5)
- local beam = Instance.new("Beam",hit)
- beam.Attachment0 = a0
- beam.Attachment1 = a1
- beam.Segments = 100
- beam.Width0 = 0.08
- beam.Width1 = 0.05
- beam.CurveSize0 = 10
- beam.CurveSize1 = 10
- beam.Transparency = NumberSequence.new(0.5)
- beam.LightEmission = 10
- hit.Material = "Neon"
- hit.BrickColor = BrickColor.new("Really black")
- hit.Anchored = true
- hit.CanCollide = false
- hit:BreakJoints()
- hit.Transparency = 0
- end
- end
- end
- wait(0.5)
- for i = 1,50 do
- wait(0.001)
- for i,s in pairs(k:GetChildren()) do
- s.Transparency = s.Transparency + i/50
- s.Size = s.Size - Vector3.new(i/50,i/50,i/50)
- end
- end
- k:Destroy()
- end
- end
- end
- end)
- attackd = false
- end
- if key == Enum.KeyCode.G then
- attackd = true
- local bull5 = Instance.new("Part",workspace)
- bull5.Name = "Bullet"
- bull5.BrickColor = BrickColor.new("White")
- bull5.Size = Vector3.new(2,2,2)
- bull5.Transparency = 1
- bull5.CanCollide = false
- bull5.CFrame = char.Torso.CFrame
- bull5.Velocity = Vector3.new(0,15,0) + char.HumanoidRootPart.CFrame.LookVector * 600
- bull5.Touched:Connect(function(hit)
- if hit.Parent then
- local character = hit.Parent
- if not(character == char or hit.Name == "Bullet") then
- if not(hit.Name == "Base" or hit.Name == "Baseplate") then
- local character = hit.Parent
- local k = Instance.new("Model",char)
- for i,hit in pairs(character:GetChildren()) do
- if hit.ClassName == "MeshPart" or hit.ClassName == "Part" then
- if hit.Name == "LowerTorso" or hit.Name == "Torso" or hit.Name == "Head" or hit.Name == "UpperTorso" or hit.Name == "Right Arm" or hit.Name == "Left Arm" or hit.Name == "Left Leg" or hit.Name == "Right Leg" or hit.Name == "LeftHand" or hit.Name == "LeftLowerArm" or hit.Name == "LeftUpperArm" or hit.Name == "RightHand" or hit.Name == "RightUpperArm" or hit.Name == "RightLowerArm" or hit.Name == "LeftUpperLeg" or hit.Name == "LeftLowerLeg" or hit.Name == "LeftFoot" or hit.Name == "RightFoot" or hit.Name == "RightUpperLeg" or hit.Name == "RightLowerLeg" then
- for i,f in pairs(hit:GetChildren()) do
- f:Destroy()
- end
- local bdpos = Instance.new("BodyPosition",hit)
- bdpos.Position = hit.Position + Vector3.new(math.random(-5,5),math.random(1,5),math.random(-5,5))
- hit.Parent = k
- hit.Name = "kill"
- local a1 = Instance.new("Attachment",hit)
- a1.WorldOrientation = Vector3.new(-0, -30, -90)
- a1.WorldPosition = Vector3.new(-5.433, 9, -38.616)
- a1.Position = Vector3.new(0, 0, 0)
- a1.Orientation = Vector3.new(0, 0, -90)
- a1.WorldAxis = Vector3.new(0, -1, 0)
- a1.Axis = Vector3.new(0, -1, 0)
- a1.SecondaryAxis = Vector3.new(1, 0, 0)
- a1.WorldSecondaryAxis = Vector3.new(0.866, 0, 0.5)
- local beam = Instance.new("Beam",hit)
- beam.Attachment0 = a0
- beam.Attachment1 = a1
- beam.Segments = 100
- beam.Width0 = 0.08
- beam.Width1 = 0.05
- beam.CurveSize0 = 10
- beam.CurveSize1 = 10
- beam.Transparency = NumberSequence.new(0.5)
- beam.LightEmission = 10
- beam.Color = ColorSequence.new(Color3.fromRGB(99, 242, 255))
- hit.Material = "Neon"
- hit.BrickColor = BrickColor.new("Toothpaste")
- hit.Anchored = true
- hit.CanCollide = false
- hit:BreakJoints()
- hit.Transparency = 0
- end
- end
- end
- wait(0.5)
- for i = 1,50 do
- wait(0.001)
- for i,s in pairs(k:GetChildren()) do
- s.Transparency = s.Transparency + i/50
- s.Size = s.Size + Vector3.new(i/50,i/50,i/50)
- end
- end
- k:Destroy()
- end
- end
- end
- end)
- attackd = false
- end
- if key == Enum.KeyCode.X then
- attackd = true
- local bull5 = Instance.new("Part",workspace)
- bull5.Name = "Bullet"
- bull5.Shape = "Ball"
- bull5.Anchored = true
- bull5.BrickColor = BrickColor.new("White")
- bull5.Size = Vector3.new(1,1,1)
- bull5.Material = "Neon"
- bull5.Transparency = 0
- bull5.CanCollide = false
- bull5.CFrame = char.Torso.CFrame
- bull5.Touched:Connect(function(hit)
- if hit.Parent then
- local character = hit.Parent
- if not(character == char or hit.Name == "Bullet") then
- if not(hit.Name == "Base" or hit.Name == "Baseplate") then
- local character = hit.Parent
- local k = Instance.new("Model",char)
- for i,hit in pairs(character:GetChildren()) do
- if hit.ClassName == "MeshPart" or hit.ClassName == "Part" then
- if hit.Name == "LowerTorso" or hit.Name == "Torso" or hit.Name == "Head" or hit.Name == "UpperTorso" or hit.Name == "Right Arm" or hit.Name == "Left Arm" or hit.Name == "Left Leg" or hit.Name == "Right Leg" or hit.Name == "LeftHand" or hit.Name == "LeftLowerArm" or hit.Name == "LeftUpperArm" or hit.Name == "RightHand" or hit.Name == "RightUpperArm" or hit.Name == "RightLowerArm" or hit.Name == "LeftUpperLeg" or hit.Name == "LeftLowerLeg" or hit.Name == "LeftFoot" or hit.Name == "RightFoot" or hit.Name == "RightUpperLeg" or hit.Name == "RightLowerLeg" then
- for i,f in pairs(hit:GetChildren()) do
- f:Destroy()
- end
- local bdpos = Instance.new("BodyPosition",hit)
- bdpos.Position = hit.Position + Vector3.new(math.random(-5,5),math.random(1,5),math.random(-5,5))
- hit.Parent = k
- hit.Name = "kill"
- hit.Material = "Neon"
- hit.BrickColor = BrickColor.new("White")
- hit.Anchored = false
- hit.CanCollide = true
- hit:BreakJoints()
- hit.Transparency = 0
- end
- end
- end
- wait(0.5)
- for i = 1,30 do
- wait(0.001)
- for i,s in pairs(k:GetChildren()) do
- s.Transparency = s.Transparency + i/30
- end
- end
- k:Destroy()
- end
- end
- end
- end)
- attackd = false
- for i = 1,30 do
- wait(0.0001)
- bull5.Size = bull5.Size + Vector3.new(1,1,1)
- bull5.Transparency = bull5.Transparency + i/450
- end
- bull5:Destroy()
- end
- if key == Enum.KeyCode.V then
- if inv == true then
- inv = false
- hum.WalkSpeed = 0
- TextLabel.TextTransparency = 0
- for i = 1,30 do
- wait(0.001)
- char.Head.face.Transparency = char.Head.face.Transparency - i/30
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = v.Transparency - i/30
- end
- if v.ClassName == "Accessory" then
- v.Handle.Transparency = v.Handle.Transparency - i/30
- end
- end
- end
- hum.WalkSpeed = 13
- end
- end
- if key == Enum.KeyCode.C then
- if inv == false then
- inv = true
- hum.WalkSpeed = 0
- TextLabel.TextTransparency = 1
- for i = 1,30 do
- wait(0.001)
- char.Head.face.Transparency = char.Head.face.Transparency + i/30
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = v.Transparency + i/30
- end
- if v.ClassName == "Accessory" then
- v.Handle.Transparency = v.Handle.Transparency + i/30
- end
- end
- end
- hum.WalkSpeed = 30
- end
- end
- end
- end)
- ---------------------------------
- -----------Wrapping up-----------
- ---------------------------------
- while game:GetService("RunService").Heartbeat:Wait() do
- if normalanim then
- sine = sine + 1
- end
- if mus.Parent == char then
- mus.SoundId = "rbxassetid://227076986"
- timepos = mus.TimePosition
- mus.Pitch = 1
- mus.Volume = 1
- mus.Playing = true
- mus.Looped = true
- else
- mus = Instance.new("Sound", char)
- mus.TimePosition = timepos
- end
- hum.Health = 9999999999999999
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- v.Anchored = false
- end
- end
- local can = math.random(1,100)
- if can == 20 then
- local mesh = Instance.new("BlockMesh",char.Head)
- local mesh2 = Instance.new("BlockMesh",char.Torso)
- local mesh3 = Instance.new("BlockMesh",char["Left Arm"])
- local mesh4 = Instance.new("BlockMesh",char["Right Arm"])
- local mesh5 = Instance.new("BlockMesh",char["Left Leg"])
- local mesh6 = Instance.new("BlockMesh",char["Right Leg"])
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Material = "Neon"
- end
- end
- for i = 1,10 do
- wait(0.0001)
- local num1 = math.random(-1,1)
- local num2 = math.random(-1,1)
- local num3 = math.random(-1,1)
- local num4 = math.random(-1,1)
- local num5 = math.random(-1,1)
- local num6 = math.random(-1,1)
- mesh.Offset = mesh.Offset + Vector3.new(num1,num2,num3)
- mesh2.Offset = mesh2.Offset + Vector3.new(num4,num5,num6)
- mesh3.Offset = mesh.Offset + Vector3.new(num1,num2,num3)
- mesh4.Offset = mesh2.Offset + Vector3.new(num4,num5,num6)
- mesh5.Offset = mesh.Offset + Vector3.new(num1,num2,num3)
- mesh6.Offset = mesh2.Offset + Vector3.new(num4,num5,num6)
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Material = "Plastic"
- end
- end
- mesh:Destroy()
- mesh2:Destroy()
- mesh3:Destroy()
- mesh4:Destroy()
- mesh5:Destroy()
- mesh6:Destroy()
- end
- if animpose == "Idle" then
- remote:FireClient(plr)
- end
- if remote.Parent == char then
- remote.Name = "ReplicationEvent"
- else
- remote = Instance.new("RemoteEvent", char)
- end
- local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
- if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
- animpose = "Walking"
- elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
- animpose = "Jumping"
- elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
- animpose = "Falling"
- else
- animpose = "Idle"
- end
- if animpose == "Idle" and normalanim then
- RS.C0 = RS.C0:Lerp(CFrame.new(1, 0.5, -1.1920929e-07, -0.00759610627, -0.086823903, 0.99619472, 0.422306597, 0.902745664, 0.0818994269, -0.906421244, 0.42132172, 0.0298089553), 0.15)
- LS.C0 = LS.C0:Lerp(CFrame.new(-1, 0.5, -1.1920929e-07, -0.00759610627, 0.086823903, -0.99619472, -0.422306597, 0.902745605, 0.0818994194, 0.906421185, 0.42132172, 0.0298089534), 0.15)
- LH.C0 = LH.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0, -1, -0.342020124, 0.939692616, 0, 0.939692616, 0.342020124, 0), 0.15)
- RH.C0 = RH.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0871555507, 0.99619472, 0.42261827, 0.902859092, 0.0789897591, -0.906307817, 0.421010077, 0.0368335284), 0.15)
- rootj.C0 = rootj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.342020363, 0.939692557, 0, 0.939692557, -0.342020363), 0.15)
- neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 1.1920929e-07, -1, 0, 0, 0, 0.342020392, 0.939692616, 0, 0.939692616, -0.342020392), 0.15)
- elseif animpose == "Walking" and normalanim then
- RS.C0 = RS.C0:Lerp(RSnor, 0.15)
- LS.C0 = LS.C0:Lerp(LSnor, 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
- neck.C0 = neck.C0:Lerp(necknor, 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
- LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
- RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
- LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
- elseif animpose == "Jumping" and normalanim then
- rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.14)
- LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.14)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- elseif animpose == "Falling" and normalanim then
- rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.14)
- LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.14)
- RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.3, 0, 0), 0.10)
- LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.3, 0, 0), 0.10)
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- end
- end
Add Comment
Please, Sign In to add comment