SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local billboard = Instance.new("ScreenGui", owner.PlayerGui)
|
| 1 | + | |
| 2 | - | cloakmeter = Instance.new("Frame",billboard)
|
| 2 | + | Tool.Name = "Sword" |
| 3 | - | cloakmeter.BackgroundColor3 = Color3.fromRGB(100,100,200) |
| 3 | + | LastAttack = 0 |
| 4 | - | cloakmeter.Size = UDim2.new(0.25,0,0.0625,0) |
| 4 | + | |
| 5 | - | cloakmeter.AnchorPoint = Vector2.new(0.5, 0) |
| 5 | + | |
| 6 | - | cloakmeter.Position = UDim2.new(0.5, 0, 0, 0) |
| 6 | + | |
| 7 | - | cloakmeter.Active = true |
| 7 | + | Tool.Parent = owner.Character |
| 8 | - | cloakmeter.BackgroundTransparency = 0 |
| 8 | + | Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) |
| 9 | - | cloakmeter2 = Instance.new("Frame",cloakmeter)
|
| 9 | + | Tool.GripUp = Vector3.new(0, 0, 1.5, 0, 0, -1, -1, 0, 0, 0, -1, 0) |
| 10 | - | cloakmeter2.Size = UDim2.new(1,0,1,0) |
| 10 | + | Tool.GripPos = Vector3.new(0,0,-1.5) |
| 11 | - | cloakmeter2.BackgroundColor3 = Color3.fromRGB(0,0,200) |
| 11 | + | |
| 12 | Knife.Size = Vector3.new(2, 1, 4) | |
| 13 | - | Cloak = Instance.new("Tool")
|
| 13 | + | |
| 14 | - | Sapper = Instance.new("Tool")
|
| 14 | + | Mesh.MeshId = "http://www.roblox.com/asset/?id=12221720" |
| 15 | - | Tool.Name = "ButterFly Knife" |
| 15 | + | Mesh.TextureId = "http://www.roblox.com/asset/?id=12224218" |
| 16 | - | Cloak.Name = "Cloak" |
| 16 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 17 | - | Sapper.Name = "Sapper lol" |
| 17 | + | |
| 18 | local stab = Instance.new("Sound", owner.character.Head)
| |
| 19 | - | sapperlmao = Instance.new("Part")
|
| 19 | + | stab.SoundId = "rbxassetid://12222216" |
| 20 | - | sapperlmao.Name = "Handle" |
| 20 | + | stab.Volume = 1 |
| 21 | - | sapperlmao.CFrame = CFrame.Angles(0, math.rad(180), 0) |
| 21 | + | local equipped = Instance.new("Sound", owner.character.Head)
|
| 22 | - | sapperlmao.Parent = Sapper |
| 22 | + | equipped.SoundId = "rbxassetid://12222225" |
| 23 | - | Sapper.Grip = CFrame.new(0.75,0,0) |
| 23 | + | equipped.Volume = 1 |
| 24 | - | Inviswatch = Instance.new("Part")
|
| 24 | + | local Lunge = Instance.new("Sound", owner.character.Head)
|
| 25 | - | Inviswatch.Name = "Handle" |
| 25 | + | Lunge.SoundId = "rbxassetid://12222208" |
| 26 | - | Inviswatch.Parent = Cloak |
| 26 | + | Lunge.Volume = 1 |
| 27 | - | Inviswatch.Size = Vector3.new(1.0625,1.0625,0.75) |
| 27 | + | |
| 28 | - | Cloak.GripPos = Vector3.new(0,0,-0.5) |
| 28 | + | islunging = false |
| 29 | ||
| 30 | Tool.Activated:connect(function() | |
| 31 | - | Cloak.Parent = workspace.Lucas_YT111 |
| 31 | + | local Tick = game:GetService("RunService").Stepped:wait()
|
| 32 | - | Tool.Parent = workspace.Lucas_YT111 |
| 32 | + | if (Tick - LastAttack) < .5 then |
| 33 | - | Sapper.Parent = workspace.Lucas_YT111 |
| 33 | + | coroutine.wrap(function() |
| 34 | - | Tool.GripPos = Vector3.new(0,-0.5,0.25) |
| 34 | + | islunging = true |
| 35 | Lunge:Stop() | |
| 36 | - | Knife.Size = Vector3.new(1, 2, 1) |
| 36 | + | Lunge:Play() |
| 37 | Tool.Grip = CFrame.Angles(0,math.rad(180),math.rad(90)) | |
| 38 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=531813581" |
| 38 | + | Tool.GripPos = Vector3.new(0,0,-1.75) |
| 39 | - | Mesh.TextureId = "http://www.roblox.com/asset/?id=531813594" |
| 39 | + | local Anim = Instance.new("StringValue")
|
| 40 | - | Mesh.Scale = Vector3.new(0.35, 0.35, 0.35) |
| 40 | + | Anim.Name = "toolanim" |
| 41 | Anim.Value = "Lunge" | |
| 42 | - | local cloaked = Instance.new("Sound", owner.character.Head)
|
| 42 | + | Anim.Parent = Tool |
| 43 | - | cloaked.SoundId = "rbxassetid://195575792" |
| 43 | + | wait(0.25) |
| 44 | islunging = false | |
| 45 | - | stab.SoundId = "rbxassetid://6405267300" |
| 45 | + | wait(0.40) |
| 46 | - | stab.Volume = 1.5 |
| 46 | + | Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) |
| 47 | - | cloaked.Volume = 1.5 |
| 47 | + | Tool.GripPos = Vector3.new(0,0,-1.5) |
| 48 | - | local death = Instance.new("Sound", owner.character.Head)
|
| 48 | + | |
| 49 | else | |
| 50 | - | Mesh.Parent = sapperlmao |
| 50 | + | |
| 51 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=450814674" |
| 51 | + | stab:Stop() |
| 52 | - | Mesh.TextureId = "http://www.roblox.com/asset/?id=450814682" |
| 52 | + | |
| 53 | - | local tased = Instance.new("Sound", owner.character.Head)
|
| 53 | + | local Anim = Instance.new("StringValue")
|
| 54 | - | tased.SoundId = "rbxassetid://82273261" |
| 54 | + | |
| 55 | - | tased.Volume = 1.5 |
| 55 | + | |
| 56 | Anim.Parent = Tool | |
| 57 | - | toolout = false |
| 57 | + | candamage = true |
| 58 | wait(0.5) | |
| 59 | - | local Anim = Instance.new("StringValue")
|
| 59 | + | candamage = false |
| 60 | end)() | |
| 61 | end | |
| 62 | LastAttack = Tick | |
| 63 | - | candamage = true |
| 63 | + | |
| 64 | ||
| 65 | ||
| 66 | Tool.Equipped:Connect(function() | |
| 67 | equipped:Play() | |
| 68 | end) | |
| 69 | ||
| 70 | - | if candamage then |
| 70 | + | |
| 71 | ||
| 72 | local function damagePlayer(otherPart) | |
| 73 | - | local headdude = partParent:findFirstChild("HumanoidRootPart") or partParent:findFirstChild("Head")
|
| 73 | + | if candamage and not islunging then |
| 74 | local partParent = otherPart.Parent | |
| 75 | - | if not isTouched then |
| 75 | + | |
| 76 | - | isTouched = true |
| 76 | + | |
| 77 | if not isTouched then | |
| 78 | - | wait(0.65) |
| 78 | + | isTouched = true |
| 79 | - | isTouched = false |
| 79 | + | if humanoid.Health ~= 0 then |
| 80 | humanoid.Health = humanoid.Health - 10 | |
| 81 | - | local ObjectSpace = headdude.CFrame:inverse() * owner.Character.Head.CFrame |
| 81 | + | wait(0.40) |
| 82 | - | if ObjectSpace.Z > 0.35 or ObjectSpace.Z > -0.35 then |
| 82 | + | isTouched = false |
| 83 | - | stab.SoundId = "rbxassetid://6405267300" |
| 83 | + | end |
| 84 | end | |
| 85 | - | humanoid.Health = 0 |
| 85 | + | |
| 86 | - | humanoid.BreakJointsOnDeath = false |
| 86 | + | |
| 87 | end | |
| 88 | - | local billboard = Instance.new("BillboardGui", headdude)
|
| 88 | + | |
| 89 | - | billboard.Adornee = headdude |
| 89 | + | local function lungelol(otherPart3) |
| 90 | - | billboard.StudsOffset = Vector3.new(-1, 2.5, 0) |
| 90 | + | if islunging and not candamage then |
| 91 | - | billboard.Size = UDim2.new(2,0,2,0) |
| 91 | + | local partParent3 = otherPart3.Parent |
| 92 | - | billboard.Name = "gaming" |
| 92 | + | local humanoid = partParent3:FindFirstChildWhichIsA("Humanoid")
|
| 93 | - | local frame = Instance.new("ImageLabel", billboard)
|
| 93 | + | |
| 94 | - | frame.BackgroundTransparency = 1 |
| 94 | + | if humanoid.Health ~= 0 then |
| 95 | - | frame.Image = "http://www.roblox.com/asset/?id=283011882" |
| 95 | + | humanoid.Health = humanoid.Health - 20 |
| 96 | - | frame.Size = billboard.Size |
| 96 | + | end |
| 97 | - | local deathrandom = math.random(1,4) |
| 97 | + | end |
| 98 | - | if deathrandom == 1 then |
| 98 | + | |
| 99 | - | death.SoundId = "rbxassetid://1080611063" |
| 99 | + | |
| 100 | - | death.Volume = 2 |
| 100 | + | |
| 101 | - | death:Play() |
| 101 | + | local function tapped(otherPart2) |
| 102 | - | elseif deathrandom == 2 then |
| 102 | + | if not islunging and not candamage then |
| 103 | - | death.SoundId = "rbxassetid://565424468" |
| 103 | + | local partParent2 = otherPart2.Parent |
| 104 | - | death.Volume = 2 |
| 104 | + | local humanoid = partParent2:FindFirstChildWhichIsA("Humanoid")
|
| 105 | - | death:Play() |
| 105 | + | |
| 106 | - | elseif deathrandom == 3 then |
| 106 | + | if not isTouched then |
| 107 | - | death.SoundId = "rbxassetid://1080625252" |
| 107 | + | isTouched = true |
| 108 | - | death.Volume = 2 |
| 108 | + | if humanoid.Health ~= 0 then |
| 109 | - | death:Play() |
| 109 | + | humanoid.Health = humanoid.Health - 5 |
| 110 | wait(0.1) | |
| 111 | - | wait(1.5) |
| 111 | + | isTouched = false |
| 112 | - | billboard:Destroy() |
| 112 | + | end |
| 113 | end | |
| 114 | - | else |
| 114 | + | |
| 115 | - | humanoid.Health = humanoid.Health - 40 |
| 115 | + | |
| 116 | - | stab.SoundId = "rbxassetid://7122602098" |
| 116 | + | |
| 117 | ||
| 118 | Knife.Touched:Connect(lungelol) | |
| 119 | Knife.Touched:Connect(damagePlayer) | |
| 120 | Knife.Touched:Connect(tapped) |