Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lighting=game:FindFirstChildOfClass("Lighting")
- Players=game:FindFirstChildOfClass("Players")PL=Players.LocalPlayer
- Mouse=PL:GetMouse()Stroke=""PC=PL.Character HRP=PC.HumanoidRootPart Humanoid=PC:FindFirstChildOfClass("Humanoid")
- Camera=workspace.CurrentCamera Active=false
- if Humanoid.RigType==Enum.HumanoidRigType.R15 then print("Unable to use with R15.")end
- Torso=PC.Torso Stand=false
- local debri=game:GetService("Debris")
- local name=""for i=1,32 do name=name..tostring(math.random(9))end
- local music=Instance.new("Sound",PL)
- local mesh={}mesh[1]="rbxassetid://991320318"
- function playsound(soundid,volume,speed)spawn(function()local s=Instance.new("Sound",workspace)s.SoundId=soundid s.PlayOnRemove=true s.Volume=volume if speed~=nil then s.PlaybackSpeed=speed end s:Play()wait(5)s.Volume=0 s:Remove()end)end
- local Create = LoadLibrary("RbxUtility").Create
- function a(part)
- local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)
- end
- function mov(part,vec3)
- local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=vec3
- end
- RightArm=PC["Right Arm"]LeftArm=PC["Left Arm"]RightLeg=PC["Right Leg"]LeftLeg=PC["Left Leg"]
- if PC:FindFirstChild("Animate")~=nil then PC.Animate:Remove()end
- 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 RootPart = PC.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- 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
- function stroke(key)
- if key~=Enum.KeyCode.Space then
- Stroke=Stroke..key
- end
- end
- function clear()
- Stroke=""Stand=false Active=false
- end
- function dodamage(part,damage,percent)
- if part.Parent~=nil then
- if part.Parent.Name~=PL.Name then
- if part.Parent:FindFirstChildOfClass("Humanoid")~=nil then
- if part.Name=="Torso"or part.Name=="UpperTorso"then
- if percent then
- part.Parent:FindFirstChildOfClass("Humanoid").Health=part.Parent:FindFirstChildOfClass("Humanoid").Health-(part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth*damage)
- local p=Instance.new("Part")p.CanCollide=false p.Transparency=1 p.Position=part.Position
- local b=Instance.new("BillboardGui",p)b.Size=UDim2.new(1,0,1,0)b.Adornee=p
- local t=Instance.new("TextLabel",b)t.Size=UDim2.new(1,0,1,0)t.TextSize=40 t.Text=part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth*damage
- t.BackgroundTransparency=1 t.BorderSizePixel=0 t.Font="Bodoni"t.TextColor3=Color3.new(1,0,0)t.TextStrokeTransparency=0
- mov(p,Vector3.new(0,2,0))debri:AddItem(p,3)
- p.Parent=workspace
- else
- part.Parent:FindFirstChildOfClass("Humanoid").Health=part.Parent:FindFirstChildOfClass("Humanoid").Health-damage
- local p=Instance.new("Part")p.CanCollide=false p.Transparency=1 p.Position=part.Position
- local b=Instance.new("BillboardGui",p)b.Size=UDim2.new(1,0,1,0)b.Adornee=p
- local t=Instance.new("TextLabel",b)t.Size=UDim2.new(1,0,1,0)t.TextSize=40 t.Text=damage
- t.BackgroundTransparency=1 t.BorderSizePixel=0 t.Font="Bodoni"t.TextColor3=Color3.new(1,0,0)t.TextStrokeTransparency=0
- mov(p,Vector3.new(0,2,0))debri:AddItem(p,3)
- p.Parent=workspace
- end
- end
- end
- end
- end
- end
- Mouse.KeyDown:connect(stroke)
- spawn(function()while wait()do if Stroke~=nil then wait(.5)Stroke=""end end end)spawn(function()while wait()do if #Stroke>=7 then Stroke=""end end end)
- spawn(function()
- while wait()do
- Humanoid.MaxHealth=1/0
- Humanoid.Health=1/0 local m=""for i=1,27 do m=m..tostring(math.random(9))end Humanoid.Name=m
- local c=PC:GetChildren()for i=1,#c do if c[i]:IsA("Part")then c[i].Locked=true end end
- if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
- if Stand then Humanoid.PlatformStand=false Humanoid.WalkSpeed=0 else Humanoid.PlatformStand=false Humanoid.WalkSpeed=20 HRP.CFrame=CFrame.new(HRP.CFrame.p,Vector3.new(Mouse.Hit.x,HRP.CFrame.y,Mouse.Hit.z))end
- if Stroke=="sax"and not Active then
- playsound("rbxassetid://182707266",math.huge,2)
- HRP.CFrame=HRP.CFrame*CFrame.new(0,0,-60)local part={}
- for i=1,20 do part[i]=Instance.new("Part")part[i].Material="Neon"part[i].CFrame=HRP.CFrame*CFrame.new(0,0,-i*-3)a(part[i])part[i].Color=Color3.new(0,0,0)part[i].Size=Vector3.new(1,1,3)part[i].Touched:connect(function(pt)dodamage(pt,.25,true)end)part[i].Parent=workspace end
- spawn(function()for i2=0,1,.05 do for i=1,20 do local pos=part[i].CFrame part[i].Transparency=i2 part[i].Size=part[i].Size+Vector3.new(i*-.01,i*-.01,0)
- part[i].CFrame=pos end wait()end for i=1,#part do part[i]:Destroy()end end)
- clear()end
- if Stroke=="dsc"and not Active then
- Active=true Stand=true wait(.5)local part={}
- for i=1,20 do part[i]=Instance.new("Part")part[i].Material="Neon"part[i].CFrame=HRP.CFrame*CFrame.new(0,0,-i*-3)a(part[i])part[i].Color=Color3.new(0,0,0)part[i].Size=Vector3.new(1,0,3)part[i].CanCollide=false part[i].Touched:connect(function(pt)dodamage(pt,.25,true)end)part[i].Parent=workspace end
- local p=Instance.new("Part")p.CanCollide=false p.Size=Vector3.new(25,25,25)p.Shape="Ball"local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://991320318"p.Position=HRP.Position a(p)p.Color=Color3.new(1,0,0)
- local p2=p:Clone()p2.Color=Color3.new(0,0,0)local m2=p2:FindFirstChildOfClass("SpecialMesh")
- playsound("rbxassetid://156572165",5,2)playsound("rbxassetid://201858087",1/0,.5)p.Parent=workspace p2.Parent=workspace
- p.Touched:connect(function(pt)dodamage(pt,.5,true)end)
- spawn(function()for i=0,1,.01 do m.Scale=Vector3.new(i*5,i*5,i*5)m2.Scale=m.Scale+Vector3.new(1,1,1)p.Transparency=i p2.Transparency=i wait()end p:Destroy()p2:Destroy()end)
- spawn(function()for i2=0,1,.05 do for i=1,20 do local pos=part[i].CFrame part[i].Transparency=i2 part[i].Size=part[i].Size+Vector3.new(i*-.01,i*-.01,0)
- part[i].CFrame=pos end wait()end for i=1,#part do part[i]:Destroy()end end)
- HRP.CFrame=HRP.CFrame*CFrame.new(0,0,60)
- clear()
- end
- if Stroke=="ww" or Stroke=="aa" or Stroke=="ss" or Stroke=="dd"then clear()end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement