Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RunService = game:GetService("RunService")
- local plr = owner
- local mouse = plr:GetMouse()
- owner.Character.Torso.Anchored = true
- local armOffset = owner.Character.Torso.CFrame:Inverse() * owner.Character["Right Arm"].CFrame
- local armWeld = Instance.new("Weld")
- armWeld.Part0 = owner.Character.Torso
- armWeld.Part1 = owner.Character["Right Arm"]
- armWeld.Parent = owner.Character
- local armOffset2 = owner.Character.Torso.CFrame:Inverse() * owner.Character["Left Arm"].CFrame
- local armWeld2 = Instance.new("Weld")
- armWeld2.Part0 = owner.Character.Torso
- armWeld2.Part1 = owner.Character["Left Arm"]
- armWeld2.Parent = owner.Character
- partagain = Instance.new("Part", owner.Character["Left Arm"])
- partagain.Size = Vector3.new(1.5,1.5,1.5)
- partagain.Transparency = 1
- partagain.CanCollide = false
- partagain.CanTouch = false
- local armWeld3 = Instance.new("Weld")
- armWeld3.Part0 = owner.Character["Left Arm"]
- armWeld3.Part1 = partagain
- armWeld3.Parent = owner.Character
- partagain.Position = owner.Character["Left Arm"].Position + Vector3.new(0, -2.5, 0)
- partagain2 = Instance.new("Part", owner.Character["Right Arm"])
- partagain2.Size = Vector3.new(1.5,1.5,1.5)
- partagain2.Transparency = 1
- partagain2.CanCollide = false
- partagain2.CanTouch = false
- local armWeld4 = Instance.new("Weld")
- armWeld4.Part0 = owner.Character["Right Arm"]
- armWeld4.Part1 = partagain2
- armWeld4.Parent = owner.Character
- partagain2.Position = owner.Character["Right Arm"].Position + Vector3.new(0, -2.5, 0)
- toolout = false
- function the(plr,action,mouse)
- local cframe = CFrame.new(owner.Character.Torso.Position, mouse.Position) * CFrame.Angles(math.pi/2, 0, 0)
- armWeld.C0 = armOffset * owner.Character.Torso.CFrame:toObjectSpace(cframe)
- local cframe2 = CFrame.new(owner.Character.Torso.Position, mouse.Position) * CFrame.Angles(math.pi/2, 0, 0)
- armWeld2.C0 = armOffset2 * owner.Character.Torso.CFrame:toObjectSpace(cframe2)
- end
- local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- E:FireServer("Down",Mouse.Hit)
- end
- end
- Mouse.Move:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E.OnServerEvent:Connect(the)
- islunging3 = false
- function thinghere(plr,action,part)
- if islunging3 and not toolout then
- if part.Name ~= "Base" then
- if part.Name ~= owner.Character.Name then
- alignposition = Instance.new("WeldConstraint")
- alignposition.Parent = partagain
- alignposition.Part0 = part
- alignposition.Part1 = partagain
- mass = part.Massless
- mass = true
- end
- end
- end
- end
- islunging2 = false
- function thinghere2(plr,action,part)
- if islunging2 and not toolout then
- if part.Name ~= "Base" then
- if part.Name ~= owner.Character.Name then
- alignposition2 = Instance.new("WeldConstraint")
- alignposition2.Parent = partagain2
- alignposition2.Part0 = part
- alignposition2.Part1 = partagain
- mass2 = part.Massless
- mass2 = true
- end
- end
- end
- end
- function the2()
- if islunging3 and not toolout then
- islunging3 = false
- alignposition:Destroy()
- mass = false
- else
- if not toolout then
- islunging3 = true
- end
- end
- end
- function the3()
- if islunging2 and not toolout then
- islunging2 = false
- alignposition2:Destroy()
- mass = false
- else
- if not toolout then
- islunging2 = true
- end
- end
- end
- local E2 = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- E:FireServer("Down",Mouse.Target)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E2.OnServerEvent:Connect(thinghere)
- local E3 = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- E:FireServer("Down",Mouse.Target)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E3.OnServerEvent:Connect(the2)
- local E4 = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- E:FireServer("Down",Mouse.Target)
- end
- end
- Mouse.Button2Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E4.OnServerEvent:Connect(thinghere2)
- local E5 = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- E:FireServer("Down",Mouse.Target)
- end
- end
- Mouse.Button2Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E5.OnServerEvent:Connect(the3)
- wait(0.1)
- owner.Character.Torso.Anchored = false
- Tool = Instance.new("Tool")
- Tool.Name = "Sword"
- Knife = Instance.new("Part")
- Knife.Name = "Handle"
- Knife.Parent = Tool
- Tool.Parent = workspace.Lucas_YT111
- Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90))
- Tool.GripUp = Vector3.new(0, 0, 1.5, 0, 0, -1, -1, 0, 0, 0, -1, 0)
- Tool.GripPos = Vector3.new(0,0,-1.5)
- Mesh = Instance.new("SpecialMesh")
- Knife.Size = Vector3.new(2, 1, 4)
- Mesh.Parent = Knife
- Mesh.MeshId = "http://www.roblox.com/asset/?id=12221720"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=12224218"
- Mesh.Scale = Vector3.new(1, 1, 1)
- myhum = owner.Character.Humanoid
- local stab = Instance.new("Sound", owner.character.Head)
- stab.SoundId = "rbxassetid://12222216"
- stab.Volume = 1
- local equipped = Instance.new("Sound", owner.character.Head)
- equipped.SoundId = "rbxassetid://12222225"
- equipped.Volume = 1
- local Lunge = Instance.new("Sound", owner.character.Head)
- Lunge.SoundId = "rbxassetid://12222208"
- Lunge.Volume = 1
- candamage = false
- islunging = false
- Tool.Activated:connect(function()
- local attackrandom = math.random(1,3)
- wait(0.45)
- if attackrandom == 1 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = Tool
- candamage = true
- wait(0.5)
- candamage = false
- elseif attackrandom == 2 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = Tool
- candamage = true
- wait(0.5)
- candamage = false
- elseif attackrandom == 3 then
- islunging = true
- Lunge:Stop()
- Lunge:Play()
- Tool.Grip = CFrame.Angles(0,math.rad(180),math.rad(90))
- Tool.GripPos = Vector3.new(0,0,-1.75)
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Lunge"
- Anim.Parent = Tool
- wait(0.25)
- islunging = false
- wait(0.40)
- Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90))
- Tool.GripPos = Vector3.new(0,0,-1.5)
- end
- end)
- Tool.Equipped:Connect(function()
- equipped:Play()
- toolout = true
- end)
- Tool.Unequipped:Connect(function()
- toolout = false
- end)
- local isTouched = false
- local function damagePlayer(otherPart)
- if candamage and not islunging then
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if humanoid ~= "myhum" and humanoid then
- stab:Stop()
- stab:Play()
- if not isTouched then
- isTouched = true
- if humanoid.Health ~= 0 then
- humanoid.Health = humanoid.Health - 10
- wait(0.40)
- isTouched = false
- end
- end
- end
- end
- end
- local function lungelol(otherPart3)
- if islunging and not candamage then
- local partParent3 = otherPart3.Parent
- local humanoid = partParent3:FindFirstChildWhichIsA("Humanoid")
- if humanoid ~= "myhum" and humanoid then
- if humanoid.Health ~= 0 then
- humanoid.Health = humanoid.Health - 20
- end
- end
- end
- end
- local function tapped(otherPart2)
- if not islunging and not candamage then
- local partParent2 = otherPart2.Parent
- local humanoid = partParent2:FindFirstChildWhichIsA("Humanoid")
- if humanoid ~= "myhum" and humanoid then
- if not isTouched then
- isTouched = true
- if humanoid.Health ~= 0 then
- humanoid.Health = humanoid.Health - 5
- wait(0.1)
- isTouched = false
- end
- end
- end
- end
- end
- Knife.Touched:Connect(lungelol)
- Knife.Touched:Connect(damagePlayer)
- Knife.Touched:Connect(tapped)
- Sapper = Instance.new("Tool")
- Sapper.Name = "Sapper lol"
- sapperlmao = Instance.new("Part")
- sapperlmao.Name = "Handle"
- sapperlmao.Parent = Sapper
- Sapper.Parent = workspace.Lucas_YT111
- Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = sapperlmao
- Mesh2.MeshId = "http://www.roblox.com/asset/?id=82337638"
- Mesh2.TextureId = "http://www.roblox.com/asset/?id=82337709"
- local tased = Instance.new("Sound", owner.character.Head)
- tased.SoundId = "rbxassetid://82273261"
- tased.Volume = 1
- tased.Looped=true
- sapped = false
- local s=Instance.new("Sound")
- s.SoundId="http://www.roblox.com/asset/?id=82277505"
- s.Looped=true
- s.Volume = 1
- Sapper.Activated:connect(function()
- sapped = true
- tased:Play()
- wait(3)
- sapped = false
- tased:Stop()
- end)
- local issapped = false
- local function hahasapped(otherPart)
- if sapped then
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if humanoid ~= "myhum" and humanoid then
- if not issapped then
- issapped = true
- s:Play()
- humanoid.PlatformStand = true
- local torso = humanoid:FindFirstChild("HumanoidRootPart")
- while issapped do
- if torso then
- torso.RotVelocity = Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*2*30
- wait(0.1)
- end
- wait(3)
- s:Stop()
- humanoid.PlatformStand = false
- wait(0.5)
- issapped = false
- end
- end
- end
- end
- end
- sapperlmao.Touched:Connect(hahasapped)
- Sapper.Equipped:Connect(function()
- toolout = true
- end)
- Sapper.Unequipped:Connect(function()
- toolout = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment