Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[SCRIPT NAME]]--
- --[[
- Move List
- --]]
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local mouse = plr:GetMouse()
- local torso = char.Torso
- local rs = torso["Right Shoulder"]
- local ls = torso["Left Shoulder"]
- local rh = torso["Right Hip"]
- local lh = torso["Left Hip"]
- local rj = char.HumanoidRootPart.RootJoint
- local neck = torso.Neck
- local animpose = "Idle"
- local attacking = false
- local cananim = true
- local rage = false
- local shield = nil
- local sprint = false
- local canrage = true
- local legs = false
- local trail = false
- local powers = false
- local bc = char:WaitForChild("Body Colors")
- local multiplier = 1
- local lac = char["Body Colors"].LeftArmColor
- local rac = char["Body Colors"].RightArmColor
- local rlc = char["Body Colors"].RightArmColor
- local llc = char["Body Colors"].LeftLegColor
- local hc = char["Body Colors"].HeadColor
- local tc = char["Body Colors"].TorsoColor
- local humanoid = char:FindFirstChildOfClass("Humanoid")
- local huge = Vector3.new(math.huge,math.huge,math.huge)
- local mobs = Instance.new("Sound", char)
- mobs.SoundId = "rbxassetid://soundid"
- mobs.Looped = true
- mobs.Volume = 3
- mobs:Play()
- if char:FindFirstChild("Animate") then char.Animate:Destroy() end
- if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then char:FindFirstChildOfClass("Humanoid").Animator:Destroy() end
- function legsonly()
- spawn(function()
- for i = 0, 10 do
- wait(0.001)
- if attacking then break end
- end
- if not attacking then
- legs = false
- end
- end)
- end
- function swait(t)
- if t == nil or t == 0 then
- game:service('RunService').Stepped:wait(0)
- return true
- else
- for i = 0, t do
- game:service('RunService').Stepped:wait(0)
- end
- return true
- end
- end
- function hurt(hit, dmg)
- if hit.Parent then
- if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end
- local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- if hum.Parent.Name ~= plr.Name then
- if dmg == "Kill" or hum.Health > 100000 then
- hit.Parent:BreakJoints()
- return true
- else
- if math.random(0, 100) == 50 then
- hum.Health = hum.Health - dmg*multiplier*2.5
- else
- hum.Health = hum.Health -dmg*multiplier
- end
- return true
- end
- end
- end
- end
- end
- function soundeffect(id, volume, speed, parent)
- spawn(function()
- local s = Instance.new("Sound")
- s.SoundId = id
- s.Volume = volume
- s.PlaybackSpeed = speed
- s.Parent = parent
- s:Play()
- repeat wait() until not s.Playing
- s:Destroy()
- end)
- end
- function gethum(obj)
- if obj.Parent then
- if obj.Parent:FindFirstChild("Humanoid") then
- if obj.Parent.Name ~= plr.Name then
- return obj.Parent:FindFirstChildOfClass("Humanoid")
- end
- end
- end
- end
- function smooth(obj)
- local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
- for i,v in pairs(sides) do
- obj[v.."Surface"] = "SmoothNoOutlines"
- end
- end
- function getparent()
- local par = workspace:FindFirstChild("BasePlate")
- if not par then par = workspace:FindFirstChild("Base") end
- if not par then par = char.Head end
- return par
- end
- function fade(obj, dest, grow)
- spawn(function()
- local oldcf = obj.CFrame
- for i = 0, 10 do
- if grow then
- obj.Size = obj.Size +Vector3.new(1,1,1)
- obj.CFrame = oldcf
- end
- obj.Transparency = obj.Transparency +0.1
- swait()
- end
- if dest then
- obj:Destroy()
- end
- end)
- end
- function replacejoint(name)
- local j = torso:FindFirstChild(name)
- if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
- if j then
- if true then
- local new = Instance.new("Weld")
- new.Part0 = j.Part0
- j.Part0 = nil
- new.Name = j.Name.." Replacement"
- new.Parent = j.Parent
- new.Part1 = j.Part1
- new.C0 = j.C0
- new.C1 = j.C1
- return new
- end
- end
- end
- function removejoint(name)
- local j = torso:FindFirstChild(name.." Replacement")
- if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
- if j then
- local p0 = j.Part0
- local c0 = j.C0
- local c1 = j.C1
- j:Destroy()
- local new = p0:FindFirstChild(name)
- local ac0 = new.C0
- local ac1 = new.C1
- new.Part0 = p0
- new.C0 = c0
- new.C1 = c1
- spawn(function()
- for i = 0, 1, 0.1 do
- new.C0 = new.C0:Lerp(ac0, 0.7)
- new.C1 = new.C1:lerp(ac1, 0.7)
- wait()
- end
- end)
- end
- end
- function fixalljoints()
- for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
- removejoint(v)
- end
- end
- function getnewjoints()
- local rs = replacejoint("Right Shoulder")
- local ls = replacejoint("Left Shoulder")
- local rh = replacejoint("Right Hip")
- local lh = replacejoint("Left Hip")
- local neck = replacejoint("Neck")
- local rj = replacejoint("RootJoint")
- return rs,ls,rh,lh,neck,rj
- end
- function chargegui()
- local gui = Instance.new("ScreenGui")
- gui.Name = "Charge"
- item1 = Instance.new('TextLabel')
- item1.Active = false
- item1.AnchorPoint = Vector2.new(0, 0)
- item1.BackgroundColor3 = Color3.new(1, 1, 1)
- item1.BackgroundTransparency = 1
- item1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- item1.BorderSizePixel = 1
- item1.Name = [[TextLabel]]
- item1.Position = UDim2.new(0,620,0,11)
- item1.Rotation = 0
- item1.Selectable = false
- item1.Size = UDim2.new(0,204,0,25)
- item1.SizeConstraint = Enum.SizeConstraint.RelativeXY
- item1.Visible = true
- item1.ZIndex = 1
- item1.ClipsDescendants = false
- item1.Draggable = false
- item1.Font = Enum.Font.SourceSansLight
- item1.FontSize = Enum.FontSize.Size24
- item1.Text = [[Charge Level]]
- item1.TextColor3 = Color3.new(0, 0, 0)
- item1.TextScaled = false
- item1.TextSize = 24
- item1.TextStrokeColor3 = Color3.new(0, 0, 0)
- item1.TextStrokeTransparency = 1
- item1.TextTransparency = 0
- item1.TextWrapped = false
- item1.TextXAlignment = Enum.TextXAlignment.Center
- item1.TextYAlignment = Enum.TextYAlignment.Center
- item1.Parent = gui
- item2 = Instance.new('Frame')
- item2.Active = false
- item2.AnchorPoint = Vector2.new(0, 0)
- item2.BackgroundColor3 = Color3.new(0, 0.760784, 0.0470588)
- item2.BackgroundTransparency = 0
- item2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- item2.BorderSizePixel = 0
- item2.Name = [[Bar]]
- item2.Position = UDim2.new(0,566,0,49)
- item2.Rotation = 0
- item2.Selectable = false
- item2.Size = UDim2.new(0,312,0,55)
- item2.SizeConstraint = Enum.SizeConstraint.RelativeXY
- item2.Visible = true
- item2.ZIndex = 2
- item2.ClipsDescendants = false
- item2.Draggable = false
- item2.Parent = gui
- item3 = Instance.new('Frame')
- item3.Active = false
- item3.AnchorPoint = Vector2.new(0, 0)
- item3.BackgroundColor3 = Color3.new(0, 0, 0)
- item3.BackgroundTransparency = 0
- item3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- item3.BorderSizePixel = 0
- item3.Name = [[Frame]]
- item3.Position = UDim2.new(0,561,0,45)
- item3.Rotation = 0
- item3.Selectable = false
- item3.Size = UDim2.new(0,322,0,54)
- item3.SizeConstraint = Enum.SizeConstraint.RelativeXY
- item3.Visible = true
- item3.ZIndex = 1
- item3.ClipsDescendants = false
- item3.Draggable = false
- item3.Parent = gui
- gui.Parent = plr.PlayerGui
- return gui
- end
- local keyamount = 0
- mouse.KeyDown:connect(function(key)
- if key == "w" or key == "a" or key == "s" or key == "d" then
- keyamount = keyamount + 1
- if animpose ~= "Falling" then
- animpose = "Walking"
- if keyamount > 3 then keyamount = 0 end
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "w" or key == "a" or key == "s" or key == "d" then
- keyamount = keyamount - 1
- if keyamount < 0 then keyamount = 0 end
- if keyamount == 0 then
- animpose = "Idle"
- end
- end
- end)
- local model = Instance.new("Model")
- model.Name = "YOYO"
- item1 = Instance.new('Part')
- item1.BrickColor = BrickColor.new('Bright Green')
- item1.Material = Enum.Material.Plastic
- item1.Reflectance = 0
- item1.Transparency = 0
- item1.Name = 'Part1'
- item1.Anchored = false
- item1.CanCollide = true
- item1.Locked = true
- item1.Size = Vector3.new(0.299999982, 1.10000002, 1.10000002) smooth(item1)
- item1.Parent = model
- item2 = Instance.new('Part')
- item2.BrickColor = BrickColor.new('Bright Yellow')
- item2.Material = Enum.Material.Neon
- item2.Reflectance = 0
- item2.Transparency = 0
- item2.Name = 'Handle'
- item2.Anchored = false
- item2.CanCollide = true
- item2.Locked = true
- item2.Size = Vector3.new(0.299999982, 0.700000048, 0.700000048) smooth(item2)
- item2.Parent = model
- item3 = Instance.new('Part')
- item3.BrickColor = BrickColor.new('Bright Green')
- item3.Material = Enum.Material.Plastic
- item3.Reflectance = 0
- item3.Transparency = 0
- item3.Name = 'Part2'
- item3.Anchored = false
- item3.CanCollide = true
- item3.Locked = true
- item3.Size = Vector3.new(0.299999982, 1.10000002, 1.10000002) smooth(item3)
- item3.Parent = model
- item4 = Instance.new('Weld')
- item4.Name = 'Weld'
- item4.Part0 = model.Part1
- item4.Part1 = model.Handle
- item4.C0 = CFrame.new(-55.2500038, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- item4.C1 = CFrame.new(-55.5500031, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- item4.Parent = model.Part1
- item5 = Instance.new('Weld')
- item5.Name = 'Weld'
- item5.Part0 = model.Part2
- item5.Part1 = model.Part1
- item5.C0 = CFrame.new(-55.8500023, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- item5.C1 = CFrame.new(-55.2500038, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- item5.Parent = model.Part2
- item6 = Instance.new('SpecialMesh')
- item6.Name = 'Mesh'
- item6.MeshType = Enum.MeshType.Cylinder
- item6.MeshId = ''
- item6.Scale = Vector3.new(1, 1, 1)
- item6.Parent = model.Part1
- item7 = Instance.new('SpecialMesh')
- item7.Name = 'Mesh'
- item7.MeshType = Enum.MeshType.Cylinder
- item7.MeshId = ''
- item7.Scale = Vector3.new(1, 1, 1)
- item7.Parent = model.Handle
- item8 = Instance.new('SpecialMesh')
- item8.Name = 'Mesh'
- item8.MeshType = Enum.MeshType.Cylinder
- item8.MeshId = ''
- item8.Scale = Vector3.new(1, 1, 1)
- item8.Parent = model.Part2
- model.Parent = char
- local handle = model.Handle
- local handlew = Instance.new("Weld")
- handlew.Part0 = handle
- handlew.Part1 = char["Right Arm"]
- handlew.C1 = CFrame.new(0,-1,0)
- handlew.Parent = handle
- for i,v in pairs(model:children()) do
- v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
- end
- local gdown = false
- local tdown = false
- mouse.KeyDown:connect(function(key)
- if key == "g" and not attacking and not gdown then
- local rs = replacejoint("Right Shoulder")
- local ls = replacejoint("Left Shoulder")
- local rj = replacejoint("RootJoint")
- gdown = true
- attacking = true
- local gui = chargegui()
- local bar = gui.Bar
- local power = 0
- repeat swait()
- power = power + 5
- if power > 312 then power = 312 end
- bar.Size = UDim2.new(0,(power/312)*312,0,55)
- ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.156434491, -0.987688541, 0, 0.987688541, 0.156434491, 1, 0, 0), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.00657593738, -0.199269861, 0.979922593, -0.590055168, 0.791935623, 0.157082453, -0.807337344, -0.577175498, -0.122787893), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.987688661, -0.156434506, 0, 0, 0, 1, -0.156434506, 0.987688661, 0), 0.2)
- until not gdown
- gui:Destroy()
- for i = 0, 2, 0.1 do
- ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359701, -0.998629749, 0, 0.998629749, 0.0523359701, 1, 0, 0), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.128450975, 0.152486846, 0.979922593, 0.968406498, -0.193699107, 0.157082453, 0.213763118, 0.969141543, -0.122787893), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.992546797, 0.1218694, 0, 0, 0, 1, 0.1218694, 0.992546797, 0), 0.2)
- if i == 0.5 then
- handlew.Part0 = nil
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = huge
- bv.Velocity = CFrame.new(handle.Position, mouse.Hit.p).lookVector*(power*0.5)
- bv.Parent = handle
- game.Debris:AddItem(bv, 0.1)
- local con
- local w
- con = handle.Touched:connect(function(hit)
- if hurt(hit, 10) then
- con:disconnect()
- w = Instance.new("Weld")
- w.Part0 = hit
- w.Part1 = handle
- w.C0 = hit.CFrame:inverse()
- w.C1 = handle.CFrame:inverse()
- w.Parent = hit
- end
- end)
- local num = 0
- repeat swait()
- trail = true
- num = num + 1
- until num >= 100 or w
- if not w then con:disconnect() end
- handlew.C0 = CFrame.new(0,0,0)
- handlew.C1 = CFrame.new(0,-1,0)
- local cf = handle.CFrame
- for i = 1, 20 do
- handle.Anchored = false
- handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20)
- handle.Anchored = true
- swait()
- end
- if w then w:Destroy() end
- handle.Anchored = false
- trail = false
- handlew.Part0 = handle
- end
- swait()
- end
- attacking = false
- fixalljoints()
- end
- if key == "f" and not attacking then
- attacking = true
- humanoid.WalkSpeed = 0
- local touch = false
- local num = 0
- local parts = {}
- local last = char.Torso.CFrame *CFrame.new(0,-3,0)
- local lastscale = 1.5
- local x,z = 0,0
- local udown = false
- handlew.Part0 = nil
- local con = mouse.KeyDown:connect(function(key)
- if key == "w" then
- z = z + -2
- udown = true
- end
- if key == "a" then
- x = x + -0.3
- end
- if key == "d" then
- x = x + 0.3
- end
- end)
- local con2 = mouse.KeyUp:connect(function(key)
- if key == "w" then
- udown = false
- z = z - -2
- end
- if key == "a" then
- x = x - -0.3
- end
- if key == "d" then
- x = x - 0.3
- end
- end)
- local dir = char.Torso.CFrame.lookVector
- local o = workspace.CurrentCamera.CameraType
- handle.Anchored = true
- repeat swait()
- local start = last *CFrame.new(0,0,-lastscale/2)
- local thing = false
- if z == 0 then
- z = -2
- thing = true
- end
- local finish = last *CFrame.new(x,0,z)
- local mag = (start.p-finish.p).magnitude
- num = num + 1
- local p = Instance.new("Part")
- p.Size = Vector3.new(1,0.2,mag)
- p.Name = "cool looking line that is just for looks"
- p.Anchored = true
- p.BrickColor = BrickColor.new("Bright Blue")
- p.Material = "Neon"
- smooth(p)
- p.CFrame = CFrame.new(start.p, finish.p)
- p.CFrame = p.CFrame *CFrame.new(0,0,-mag/2)
- handle.Anchored = false
- handle.CFrame = p.CFrame *CFrame.new(0.3,0,0)
- handle.Anchored = true
- last = p.CFrame
- lastscale = mag
- local m = Instance.new("SpecialMesh")
- m.MeshType = "Brick"
- m.Parent = p
- p.Touched:connect(function(hit)
- if hurt(hit, 200) then
- touch = true
- local p1 = Instance.new("Part")
- soundeffect("rbxassetid://636458264", 2, 1, p1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.BrickColor = BrickColor.new("Bright Blue")
- p1.Material = "Neon"
- p1.Name = "omega ex-u-plosion"
- p1.CFrame = p.CFrame
- p1.Size = Vector3.new(0.2,0.2,0.2)
- p1.Transparency = 1
- local m = Instance.new("SpecialMesh")
- m.MeshType = "Sphere"
- m.Parent = p1
- p1.Parent = getparent()
- local sub = -0.1
- for i = 1, 30 do
- if i >= 15 then sub = 0.1 end
- p1.Transparency = p1.Transparency + sub
- local cf = p1.CFrame
- p1.Size = p1.Size:Lerp(Vector3.new(10,10,10),0.2)
- p1.CFrame = cf
- swait()
- end
- p1:Destroy()
- end
- end)
- table.insert(parts, p)
- p.Parent = getparent()
- workspace.CurrentCamera.CameraType = "Scriptable"
- workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(p.CFrame *CFrame.new(0,2,2),0.5)
- if thing then
- z = 0 thing = false
- end
- until touch or num == 500
- handle.Anchored = false
- local cf = handle.CFrame
- for i = 1, 40 do
- handle.Anchored = false
- handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20)
- handle.Anchored = true
- swait()
- end
- handle.Anchored = false
- handlew.Part0 = handle
- workspace.CurrentCamera.CameraType = o
- for i = 0, 1, 0.1 do
- for i,v in pairs(parts) do
- v.Mesh.Scale = v.Mesh.Scale:Lerp(Vector3.new(0,1,1),0.3)
- end
- swait()
- end
- for i,v in pairs(parts) do
- v:Destroy()
- end
- humanoid.WalkSpeed = 16
- attacking = false
- end
- if key == "y" and not attacking then
- attacking = true
- local rs = replacejoint("Right Shoulder")
- local ls = replacejoint("Left Shoulder")
- local rj = replacejoint("RootJoint")
- local num = 0
- for i = 0, 2, 0.1 do
- handlew.C1 = handlew.C1:Lerp(CFrame.new(0,-4,0), 0.2)
- ls.C0 = ls.C0:Lerp(CFrame.new(-0.754648447, 0.476126075, -0.315012902, -0.0523041263, -0.613378763, -0.788055778, -0.998022199, 0.0596848764, 0.0197843909, 0.0348996557, 0.78753221, -0.615287662), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(0.759603679, 0.487401366, -0.319454879, -0.0523360372, 0.600990534, 0.797541499, 0.99863106, 0.0314966701, 0.0417973027, -9.12696123e-008, 0.798637211, -0.601816177), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
- swait()
- end
- trail = true
- local connection = handle.Touched:connect(function(hit)
- hurt(hit, math.random(20,50))
- end)
- for i = 0, 150 do
- if i%20 == 0 then soundeffect("rbxassetid://541909867", 2, 2, handle) end
- rj.C0 = rj.C0:Lerp(rj.C0*CFrame.Angles(0,0,math.rad(4*(i/2))), 0.2)
- swait()
- end
- trail = false
- attacking = false
- connection:disconnect()
- fixalljoints()
- handlew.C1 = CFrame.new(0,-1,0)
- end
- if key == "t" and not attacking and not tdown then
- tdown = true
- attacking = true
- local rs = replacejoint("Right Shoulder")
- handlew.C0 = CFrame.new(3,0,0)
- local power = 0
- trail = true
- local cons = {}
- for i,v in pairs(handle.Parent:children()) do
- local con = v.Touched:connect(function(hit)
- hurt(hit, 10)
- end)
- table.insert(cons, con)
- end
- repeat swait()
- power = power + 5
- if power >= 180 then power = 180 end
- rs.C0 = rs.C0:Lerp(CFrame.new(1.52548289, 0.0268524922, 0, 0, -0.998630881, -0.0523358211, 0, -0.0523358211, 0.998630881, -1, 0, 0), 0.2)
- handlew.C1 = handlew.C1 *CFrame.Angles(0,math.rad((power/180)*20),0)
- until not tdown
- handlew.Part0 = nil
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = huge
- bv.Velocity = CFrame.new(handle.Position, mouse.Hit.p).lookVector*power
- bv.Parent = handle
- game.Debris:AddItem(bv, 0.1)
- fixalljoints()
- swait(100)
- for i,v in pairs(cons) do
- v:disconnect()
- end
- local cf = handle.CFrame
- for i = 1, 20 do
- handle.Anchored = false
- handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20)
- handle.Anchored = true
- swait()
- end
- handle.Anchored = false
- handlew.C1 = CFrame.new(0,-1,0)
- handlew.C0 = CFrame.new(0,0,0)
- trail = false
- handlew.Part0 = handle
- attacking = false
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "g" and attacking then
- gdown = false
- end
- if key == "t" and attacking then
- tdown = false
- end
- end)
- local parts = {}
- spawn(function()
- local num = 0
- local lastpart = nil
- local lastscale = 0.5
- local cf = handle.CFrame
- while swait() do
- for i,v in pairs(parts) do
- if v:FindFirstChild("Mesh") then
- v.Mesh.Scale = v.Mesh.Scale:Lerp(Vector3.new(0,0,1), 0.2)
- if v.Mesh.Scale.X < 0.05 then
- v:Destroy()
- end
- end
- end
- if trail and handle.CFrame ~= cf then
- if not lastpart then lastpart = handle end
- local start = lastpart.CFrame *CFrame.new(0,0,-lastscale/2)
- local endpos = handle.CFrame
- local mag = (start.p-endpos.p).magnitude
- local p = Instance.new("Part")
- p.Anchored = true
- p.BrickColor = BrickColor.new("Bright Blue")
- p.Material = "Neon"
- p.CanCollide = false
- p.Size = Vector3.new(0.5,0.5,mag)
- p.CFrame = CFrame.new(start.p, endpos.p)*CFrame.new(0,0,-mag/2)
- local m = Instance.new("SpecialMesh")
- m.MeshType = "Brick"
- m.Parent = p
- p.Parent = getparent()
- table.insert(parts, p)
- cf = handle.CFrame
- lastscale = mag
- lastpart = p
- else
- if lastpart then
- lastpart:Destroy()
- lastpart = nil
- lastscale = 0.5
- end
- end
- local v = char.HumanoidRootPart.Velocity
- if v.Y > 15 then
- animpose = "Jump"
- end
- if v.Y < -15 then
- animpose = "Falling"
- end
- if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then
- animpose = "Walking"
- end
- if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then
- animpose = "Idle"
- end
- end
- end)
- local num = 0
- while swait() do
- num = num + 0.05
- local sin = math.sin(num)
- if animpose == "Walking" and cananim then
- for i = 0, 1.5, 0.1 do
- if animpose == "Walking" and cananim then
- ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0.0406726934, 0.0329360999, -0.99862957, 0.776081443, 0.62845856, 0.0523359552, 0.629320979, -0.777146459, 0), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0388932228, -0.0350196026, 0.998629689, 0.742127001, 0.668214321, 0.0523359627, -0.66913116, 0.743145287, 0), 0.2)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.024677692, 0.0246776957, -0.999390841, 0.706676483, 0.706676781, 0.0348994955, 0.707107425, -0.707107246, 0), 0.2)
- rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0136363264, -0.032125175, 0.999390841, 0.390493214, 0.919944584, 0.0348994955, -0.920505524, 0.390731305, 0), 0.2)
- neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.99969542, -0.0174524058, 0.0174497478, 0.0174524058, 0, 0.99984771, -0.0174497478, 0.99984771, 0.000304586458), 0.2)
- swait()
- else
- break
- end
- end
- for i = 0, 1.5, 0.1 do
- if animpose == "Walking" and cananim then
- ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0433885492, 0.0292659476, -0.99862957, -0.827903032, 0.558427453, 0.0523359552, 0.559194028, 0.829038858, 0), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.0400917344, -0.0336409658, 0.998629689, -0.764996171, 0.641907811, 0.0523359627, -0.642788768, -0.76604563, 0), 0.2)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0163843632, 0.0308145005, -0.999390841, -0.469186544, 0.882411182, 0.0348994955, 0.882949054, 0.469472289, 0), 0.2)
- rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0246777162, -0.0246777181, 0.999390841, -0.70667702, 0.70667696, 0.0348994955, -0.707107902, -0.707107782, 0), 0.2)
- neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999695539, 0.0174497515, -0.0174524095, -0.0174497515, 0.000304586574, 0.999847829, 0.0174524058, 0.99984771, -2.90993982e-11), 0.2)
- swait()
- else
- break
- end
- end
- end
- if animpose == "Idle" and cananim then
- ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, -0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.2)
- rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.2)
- neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.994522035, -0.104528472, 0, 0, 0, 1, -0.104528472, 0.994522035, 0), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.997564137, 0.0697564781, 0, 0, 0, 1, 0.0697564781, 0.997564137, 0), 0.2)
- swait()
- end
- if animpose == "Jump" and cananim then
- for i = 0, 0.8, 0.1 do
- if animpose == "Jump" and cananim then
- ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.104528472, 0.994522035, 0, 0.994522035, 0.104528472, -1, -0, 0), 0.2)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.499999911, -0.5, 0, 0, -1, 0.309017062, 0.951056957, 0, 0.951056957, -0.309017062, 0), 0.2)
- rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, 0, 1, -0.121869355, 0.99254632, 0, -0.99254632, -0.121869355, 0), 0.2)
- neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
- swait()
- else
- break
- end
- end
- end
- if animpose == "Falling" and cananim then
- ls.C0 = ls.C0:Lerp(CFrame.new(-0.987813056, 0.599254608, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
- rs.C0 = rs.C0:Lerp(CFrame.new(0.986082673, 0.599026859, 0, 0, -0.139173135, 0.990268409, 0, 0.990268409, 0.139173135, -1, 0, 0), 0.2)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.963904023, 0.0336604826, 0, 0.104528472, -0.994522035, 0.0697564557, 0.992099881, 0.1042739, 0.997564554, -0.0693743229, -0.00729153492), 0.2)
- rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0697564781, 0.997564137, -0.121869355, 0.990128577, 0.0692365244, -0.99254632, -0.121572495, -0.00850117672), 0.2)
- neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.13917312, 0.99026823, 0, 0.99026823, -0.13917312), 0.2)
- rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement