Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool = Instance.new("Tool")
- Tool.Name = "Sword"
- Knife = Instance.new("Part")
- Knife.Name = "Handle"
- Knife.Parent = Tool
- Tool.Parent = workspace.Lucas_YT111
- Knife.Size = Vector3.new(0.82325, 2.1545, 6.25)
- Knife.Massless = true
- Knife.CanCollide = true
- myhum = owner.Character.Humanoid
- local stab = Instance.new("Sound", owner.character.Head)
- stab.SoundId = "rbxassetid://663369157"
- stab.Volume = 1
- stab.Looped = true
- islunging = false
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Knife
- Mesh.MeshId = "http://www.roblox.com/asset/?id=6938825994"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=6938826036"
- Mesh.Scale = Vector3.new(0.125, 0.125, 0.125)
- Tool.Activated:connect(function()
- islunging = true
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Lunge"
- Anim.Parent = Tool
- wait(0.25)
- islunging = false
- wait(0.40)
- end)
- local isTouched = false
- function thinghere(plr,action,otherPart)
- if islunging then
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if humanoid ~= "myhum" and humanoid then
- if not isTouched then
- isTouched = true
- humanoid.BreakJointsOnDeath = false
- if humanoid.Health ~= 0 then
- humanoid.Health = 0
- wait(0.75)
- isTouched = false
- end
- end
- end
- end
- end
- local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Target ~= nil then
- E:FireServer("Down",Mouse.Target)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E.OnServerEvent:Connect(thinghere)
- Tool.Unequipped:connect(function()
- stab:Stop()
- end)
- Tool.Equipped:connect(function()
- stab:Play()
- end)
- Tool.GripPos = Vector3.new(0,-0.5,2)
Advertisement
Add Comment
Please, Sign In to add comment