Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- char = plr.Character
- tors = char.Torso
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- anim = "Idle"
- attack = false
- 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 neck = char.Torso["Neck"]
- local anim = "Idle"
- local animate = char.Animate
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local timepos = 0
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- hum.Animator:remove()
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- local dustp = Instance.new("Part",char)
- dustp.Transparency = 1
- dustp.Size = Vector3.new(0.1, 0.1, 0.1)
- dustp.CanCollide = false
- dustp.Locked = true
- local dustj = ezweld(char, root, dustp, CFrame.new(0, -tors.Size.y - 0.5, 0))
- local dust = Instance.new("ParticleEmitter",dustp)
- dust.Rate = 3
- dust.Lifetime = NumberRange.new(0.35)
- dust.Texture = "rbxassetid://420061161"
- dust.Speed = NumberRange.new(2)
- dust.EmissionDirection = "Back"
- dust.Rotation = NumberRange.new(155)
- dust.RotSpeed = NumberRange.new(15)
- dust.Enabled = false
- dust.Size = NumberSequence.new(tors.Size.y - 1.5, tors.Size.y - 0.75)
- dust.Transparency = NumberSequence.new(0.25, 1)
- sped = 16
- hee = 15
- ae = false
- emrad = 0
- function RayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- function clerpie(a, b, t)
- return a:lerp(b, t)
- end
- function thread(f)
- return coroutine.resume(coroutine.create(f))
- end
- function trip(h, t)
- if h.PlatformStand ~= true then
- h.PlatformStand = true
- thread(function()
- wait(t)
- h.PlatformStand = false
- end)
- end
- end
- function chatFunc(msg, timr, col, size)
- spawn(function()
- local namebillboard = Instance.new("BillboardGui")
- local textt = Instance.new("TextLabel")
- namebillboard.Size = UDim2.new(9/1.5, 0, 1, 0)
- namebillboard.Name = "NameBillboard"
- namebillboard.StudsOffset = Vector3.new(0, 0.75, 2)
- namebillboard.Parent = char.Head
- namebillboard.Adornee = hed
- textt.TextWrapped = true
- textt.BackgroundTransparency = 1
- textt.BackgroundColor3 = Color3.new(1, 1, 1)
- textt.TextSize = size or 14
- textt.TextScaled = true
- textt.Font = Enum.Font.Fantasy
- textt.Text = msg or ''
- textt.TextStrokeTransparency = 0
- textt.TextStrokeColor3 = Color3.new(0,0,0)
- textt.TextColor = col
- textt.Size = UDim2.new(1, 0, 1, 0)
- textt.Parent = namebillboard
- local RM = math.random(1,2)
- local DR = 0
- for i=1,timr do Swait()
- if RM == 1 then
- DR = DR + 1
- namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.sin(DR/(timr/2.5)), 2)
- textt.TextStrokeTransparency = i/timr
- textt.TextTransparency = i/timr
- textt.Rotation = 7.5*math.cos(DR/(timr/2))
- elseif RM == 2 then
- DR = DR + 1
- namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.sin(DR/(timr/2.5)), 2)
- textt.TextStrokeTransparency = i/timr
- textt.TextTransparency = i/timr
- textt.Rotation = 7.5*-math.cos(DR/(timr/2))
- end
- end
- namebillboard:Destroy()
- end)
- end
- function deds(model, E)
- model.Archivable = true
- local clone = model:Clone()
- clone:FindFirstChildOfClass("Humanoid").Health = 100
- clone:FindFirstChildOfClass("Humanoid").MaxHealth = 100
- clone.Parent = workspace
- --WhenHit(clone:FindFirstChildOfClass("Humanoid"), E, '')
- --Ragdoll(clone)
- for i,v in pairs (model:children()) do
- if v:IsA("Part") then
- v:remove()
- end
- end
- Debris:AddItem(clone, 7)
- end
- Player_Size = 1
- angles = CFrame.Angles
- CF = CFrame.new
- script.Parent = char
- chatFunc("できました! あなたの人生のために走ります!", 55, BrickColor.new("Royal purple"), 14)
- plr.Chatted:connect(function(msg)
- chatFunc(msg, 45, BrickColor.new("Royal purple"), 14)
- end)
- function spark(cf, s1, s2, col, u, mat, ec)
- if not char:FindFirstChild("cool") then
- local cool = Instance.new("NumberValue", char)
- cool.Name = "cool"
- game:GetService("Debris"):AddItem(cool, ec)
- local spark = Instance.new("Part", script)
- spark.Size = s1
- spark.BrickColor = BrickColor.new(col)
- spark.Material = mat
- spark.CFrame = cf
- spark.Anchored = true
- spark.Locked = true
- spark.CanCollide = false
- local mesh = Instance.new("SpecialMesh", spark)
- mesh.MeshType = "Sphere"
- coroutine.resume(coroutine.create(function()
- for i = 1,35 do
- Swait()
- spark.Anchored = true
- spark.CanCollide = false
- spark.Transparency = spark.Transparency + 0.05
- spark.Size = spark.Size:Lerp(s2, 0.05)
- spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
- end
- spark:remove()
- end))
- end
- end
- function sparknc(cf, s1, s2, col, u, mat, ec)
- --if not char:FindFirstChild("cool") then
- local cool = Instance.new("NumberValue", char)
- cool.Name = "cool"
- game:GetService("Debris"):AddItem(cool, ec)
- local spark = Instance.new("Part", script)
- spark.Size = s1
- spark.BrickColor = BrickColor.new(col)
- spark.Material = mat
- spark.CFrame = cf
- spark.Anchored = true
- spark.Locked = true
- spark.CanCollide = false
- local mesh = Instance.new("SpecialMesh", spark)
- mesh.MeshType = "Sphere"
- coroutine.resume(coroutine.create(function()
- for i = 1,35 do
- Swait()
- spark.Anchored = true
- spark.CanCollide = false
- spark.Transparency = spark.Transparency + 0.05
- spark.Size = spark.Size:Lerp(s2, 0.05)
- spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
- end
- spark:remove()
- end))
- --end
- end
- function sqe(cf, s1, s2, col, col2, u, mat, ec)
- if not char:FindFirstChild("cool2") then
- local cool = Instance.new("NumberValue", char)
- cool.Name = "cool2"
- game:GetService("Debris"):AddItem(cool, ec)
- local spark = Instance.new("Part", script)
- spark.Size = s1
- spark.BrickColor = BrickColor.new(col)
- spark.Material = mat
- spark.CFrame = cf
- spark.Anchored = true
- spark.Locked = true
- spark.CanCollide = false
- spark.Transparency = 0
- coroutine.resume(coroutine.create(function()
- for i = 1,35 do
- Swait()
- spark.Anchored = true
- spark.CanCollide = false
- spark.Transparency = spark.Transparency + 0.05
- spark.Size = spark.Size:Lerp(s2, 0.05)
- spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
- spark.Color = spark.Color:lerp(BrickColor.new(col2).Color, 0.05)
- end
- spark:remove()
- end))
- end
- return spark
- end
- function sqe2(cf, s1, s2, col, col2, u, mat, ec, t)
- if not char:FindFirstChild("cool2") then
- local cool = Instance.new("NumberValue", char)
- cool.Name = "cool2"
- game:GetService("Debris"):AddItem(cool, ec)
- local spark = Instance.new("Part", script)
- spark.Size = s1
- spark.BrickColor = BrickColor.new(col)
- spark.Material = mat
- spark.CFrame = cf
- spark.Anchored = true
- spark.Locked = true
- spark.CanCollide = false
- spark.Transparency = 0
- coroutine.resume(coroutine.create(function()
- for i = 1,35 do
- Swait()
- spark.Anchored = true
- spark.CanCollide = false
- spark.Transparency = spark.Transparency + t
- spark.Size = spark.Size:Lerp(s2, 0.05)
- spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
- spark.Color = spark.Color:lerp(BrickColor.new(col2).Color, 0.05)
- end
- spark:remove()
- end))
- end
- return spark
- end
- function pulse()
- attack = true
- local lastcf = false
- local E = 0
- for i = 1,15 do
- Swait()
- local A = 0.35
- sqe2(la.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))), Vector3.new(A, A, A), Vector3.new(8, 8, 8), "Dark indigo", "Royal purple", 0, "Neon", 0.085, 0.1)
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-3 * Sin(sine / 26)), 0, Rad(0)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(15), 0, Rad(-0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-2), Rad(-7 - 0), Rad(-3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-1), Rad(7 + 0), Rad(3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-7), Rad(0)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7 - 0), Rad(15)), 0.3)
- end
- for i = 1,15 do
- Swait()
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-3 * Sin(sine / 26)), 0, Rad(0)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(-15), 0, Rad(-0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-2), Rad(-7 - 0), Rad(-3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-1), Rad(7 + 0), Rad(3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-7), Rad(0)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7 - 0), Rad(-180)), 0.3)
- E = E - 2
- if lastcf == false then
- local a = 0
- local fp = sparknc(root.CFrame * CFrame.new(0, 0, 0), Vector3.new(2, 0.1, 2), Vector3.new(2, 45, 2), "Royal purple", 0, "Neon", 0)
- lastcf = true
- else
- local a = 0
- local fp = sparknc(root.CFrame * CFrame.new(0, 0, E), Vector3.new(2, 0.1, 2), Vector3.new(2, 45, 2), "Royal purple", 0, "Neon", 0)
- end
- end
- attack = false
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- pulse()
- end
- end)
- warn'so my friends web died, back to paste for now. by youngmacka123'
- while true do
- Swait()
- sine = sine + 1
- local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- local WALKSPEEDVALUE = 7 / (hum.WalkSpeed / 17)
- torsverticalvel = root.Velocity.y
- hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
- if hitfloor and attack == false then
- local a = 6
- local fp = spark(hitfloor.CFrame * CFrame.new(root.CFrame.x + math.random(-a, a), 0, root.CFrame.z + math.random(-a, a)), Vector3.new(0.45, 0.1, 0.45), Vector3.new(0.45, 45, 0.45), "Royal purple", 0, "Neon", 0.1)
- end
- if TORSOVELOCITY < 1 and hitfloor ~= nil then
- anim = "Idle"
- if attack == false then
- local A = 1.25
- sqe(la.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))), Vector3.new(A, A, A), Vector3.new(0.35, 0.35, 0.35), "Royal purple", "Dark indigo", 0, "Neon", 0.065)
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-3 * Sin(sine / 26)), 0, Rad(25)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(-25)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-2), Rad(-7 - 15), Rad(-3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-1), Rad(7 + 15), Rad(3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-7), Rad(0)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7 - 25), Rad(-155)), 0.3)
- end
- elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
- anim = "Walk"
- if attack == false then
- local A = 1.25
- sqe(la.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))), Vector3.new(A, A, A), Vector3.new(0.35, 0.35, 0.35), "Royal purple", "Dark indigo", 0, "Neon", 0.1)
- dust.Enabled = false
- rootj.C0 = clerpie(rootj.C0, rootjnor * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3.5 * Cos(sine / 7))), 0.15)
- --clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(-2.5 * Cos(sine / 7))), 0.3)
- RH.C0 = clerpie(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
- LH.C0 = clerpie(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
- --clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(-15 + 15 * Sin(sine / 7))) * CFrame.new(0.15 * Sin(sine / 7), (0.05 / 2) + 0.05 * Sin(sine / 3.5), 0), 0.3)
- --clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(15 + 15 * Sin(sine / 7))) * CFrame.new(0.15 * Sin(sine / 7), (0.05 / 2) + 0.05 * Sin(sine / 3.5), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(75.5) * Cos(sine / 7) / 2.5), 0.3)
- --clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(75.5) * Cos(sine / 7) / 2.5), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7), Rad(-155)), 0.3)
- end
- elseif torsverticalvel > 0.05 and hitfloor == nil then
- anim = "Jump"
- if attack == false then
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(-7), 0) * CFrame.new(0.25, 0, 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(7), 0) * CFrame.new(0, 0, 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(-7), 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(7), 0), 0.3)
- end
- elseif torsverticalvel < 0.05 and hitfloor == nil then
- anim = "Fall"
- if attack == false then
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(15), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(-7), 0) * CFrame.new(0.25, 0, 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(7), 0) * CFrame.new(0, 0, 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0.35, 0.75) * CFrame.Angles(Rad(-135), 0, 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0.35, 0.75) * CFrame.Angles(Rad(-135), 0, 0), 0.3)
- end
- end
- end
Add Comment
Please, Sign In to add comment