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 | - | Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) |
| 7 | + | Knife.Size = Vector3.new(4, 4, 1) |
| 8 | - | Tool.GripUp = Vector3.new(0, 0, 1.5, 0, 0, -1, -1, 0, 0, 0, -1, 0) |
| 8 | + | |
| 9 | - | Tool.GripPos = Vector3.new(0,0,-46.75) |
| 9 | + | |
| 10 | - | Knife.Size = Vector3.new(2, 3, 85) |
| 10 | + | |
| 11 | local stab = Instance.new("Sound", owner.character.Head)
| |
| 12 | stab.SoundId = "rbxassetid://663369157" | |
| 13 | stab.Volume = 1 | |
| 14 | stab.Looped = true | |
| 15 | - | stab.SoundId = "rbxassetid://6842136752" |
| 15 | + | |
| 16 | ||
| 17 | - | local equipped = Instance.new("Sound", owner.character.Head)
|
| 17 | + | |
| 18 | - | equipped.SoundId = "rbxassetid://12222225" |
| 18 | + | |
| 19 | - | equipped.Volume = 1 |
| 19 | + | |
| 20 | Anim.Name = "toolanim" | |
| 21 | Anim.Value = "Lunge" | |
| 22 | Anim.Parent = Tool | |
| 23 | wait(0.25) | |
| 24 | islunging = false | |
| 25 | - | stab:Stop() |
| 25 | + | |
| 26 | - | stab:Play() |
| 26 | + | |
| 27 | - | Tool.Grip = CFrame.Angles(0,math.rad(180),math.rad(90)) |
| 27 | + | |
| 28 | - | Tool.GripPos = Vector3.new(0,0,-47) |
| 28 | + | function thinghere(plr,action,part) |
| 29 | if islunging then | |
| 30 | if part.Name ~= "Base" then | |
| 31 | if part.Name ~= "Lucas_YT111" then | |
| 32 | Tool = Instance.new("Tool")
| |
| 33 | part.Name = "Handle" | |
| 34 | part.Parent = Tool | |
| 35 | Tool.Parent = owner.Character | |
| 36 | - | Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) |
| 36 | + | part.Anchored = false |
| 37 | - | Tool.GripPos = Vector3.new(0,0,-46.75) |
| 37 | + | |
| 38 | end | |
| 39 | end | |
| 40 | end | |
| 41 | - | Tool.Equipped:Connect(function() |
| 41 | + | |
| 42 | - | equipped:Play() |
| 42 | + | |
| 43 | local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
| |
| 44 | local Mouse = owner:GetMouse() | |
| 45 | - | local function lungelol(otherPart3) |
| 45 | + | function ButtonDown() |
| 46 | - | if islunging then |
| 46 | + | if Mouse.Target ~= nil then |
| 47 | - | local partParent3 = otherPart3.Parent |
| 47 | + | E:FireServer("Down",Mouse.Target)
|
| 48 | - | local humanoid = partParent3:FindFirstChildWhichIsA("Humanoid")
|
| 48 | + | end |
| 49 | - | if humanoid ~= "myhum" and humanoid then |
| 49 | + | end |
| 50 | - | if humanoid.Health ~= 0 then |
| 50 | + | Mouse.Button1Down:Connect(ButtonDown) |
| 51 | - | humanoid.Health = humanoid.Health + 200 |
| 51 | + | ]],owner.PlayerGui)) |
| 52 | - | end |
| 52 | + | E.OnServerEvent:Connect(thinghere) |
| 53 | - | end |
| 53 | + | |
| 54 | local decal2 = Instance.new("Decal", Knife)
| |
| 55 | decal2.Transparency = 0 | |
| 56 | decal2.Face = Enum.NormalId.Front | |
| 57 | - | Knife.Touched:Connect(lungelol) |
| 57 | + | local happyFace = "http://www.roblox.com/asset/?id=7370272015" |
| 58 | decal2.Texture = happyFace | |
| 59 | ||
| 60 | Tool.Unequipped:connect(function() | |
| 61 | stab:Stop() | |
| 62 | end) | |
| 63 | Tool.Equipped:connect(function() | |
| 64 | stab:Play() | |
| 65 | end) |