SHOW:
|
|
- or go back to the newest paste.
| 1 | Tool = Instance.new("Tool")
| |
| 2 | Tool.Name = "Sword" | |
| 3 | Knife = Instance.new("Part")
| |
| 4 | Knife.Name = "Handle" | |
| 5 | Knife.Parent = Tool | |
| 6 | Tool.Parent = workspace.Lucas_YT111 | |
| 7 | - | Knife.Size = Vector3.new(4, 4, 1) |
| 7 | + | Knife.Size = Vector3.new(0.82325, 2.1545, 6.25) |
| 8 | Knife.Massless = true | |
| 9 | Knife.CanCollide = true | |
| 10 | myhum = owner.Character.Humanoid | |
| 11 | local stab = Instance.new("Sound", owner.character.Head)
| |
| 12 | stab.SoundId = "rbxassetid://663369157" | |
| 13 | stab.Volume = 1 | |
| 14 | stab.Looped = true | |
| 15 | islunging = false | |
| 16 | Mesh = Instance.new("SpecialMesh")
| |
| 17 | Mesh.Parent = Knife | |
| 18 | Mesh.MeshId = "http://www.roblox.com/asset/?id=6938825994" | |
| 19 | Mesh.TextureId = "http://www.roblox.com/asset/?id=6938826036" | |
| 20 | Mesh.Scale = Vector3.new(0.125, 0.125, 0.125) | |
| 21 | ||
| 22 | Tool.Activated:connect(function() | |
| 23 | islunging = true | |
| 24 | local Anim = Instance.new("StringValue")
| |
| 25 | Anim.Name = "toolanim" | |
| 26 | Anim.Value = "Lunge" | |
| 27 | Anim.Parent = Tool | |
| 28 | - | function thinghere(plr,action,part) |
| 28 | + | |
| 29 | islunging = false | |
| 30 | - | if part.Name ~= "Base" then |
| 30 | + | |
| 31 | - | if part.Name ~= "Lucas_YT111" then |
| 31 | + | |
| 32 | ||
| 33 | - | part.Name = "Handle" |
| 33 | + | local isTouched = false |
| 34 | - | part.Parent = Tool |
| 34 | + | |
| 35 | - | Tool.Parent = owner.Character |
| 35 | + | function thinghere(plr,action,otherPart) |
| 36 | - | part.Anchored = false |
| 36 | + | |
| 37 | local partParent = otherPart.Parent | |
| 38 | local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
| |
| 39 | if humanoid ~= "myhum" and humanoid then | |
| 40 | if not isTouched then | |
| 41 | isTouched = true | |
| 42 | humanoid.BreakJointsOnDeath = false | |
| 43 | if humanoid.Health ~= 0 then | |
| 44 | humanoid.Health = 0 | |
| 45 | wait(0.75) | |
| 46 | isTouched = false | |
| 47 | end | |
| 48 | end | |
| 49 | end | |
| 50 | end | |
| 51 | end | |
| 52 | ||
| 53 | ||
| 54 | - | local decal2 = Instance.new("Decal", Knife)
|
| 54 | + | |
| 55 | - | decal2.Transparency = 0 |
| 55 | + | |
| 56 | - | decal2.Face = Enum.NormalId.Front |
| 56 | + | |
| 57 | - | local happyFace = "http://www.roblox.com/asset/?id=7370272015" |
| 57 | + | |
| 58 | - | decal2.Texture = happyFace |
| 58 | + | |
| 59 | end | |
| 60 | end | |
| 61 | Mouse.Button1Down:Connect(ButtonDown) | |
| 62 | ]],owner.PlayerGui)) | |
| 63 | E.OnServerEvent:Connect(thinghere) | |
| 64 | ||
| 65 | - | end) |
| 65 | + | |
| 66 | stab:Stop() | |
| 67 | end) | |
| 68 | Tool.Equipped:connect(function() | |
| 69 | stab:Play() | |
| 70 | end) | |
| 71 | Tool.GripPos = Vector3.new(0,-0.5,2) |