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 = owner.Character
- Knife.Size = Vector3.new(1, 1, 1)
- Knife.Massless = true
- Knife.CanCollide = true
- myhum = owner.Character.Humanoid
- local stab = Instance.new("Sound", owner.character.Head)
- stab.SoundId = "rbxassetid://199607491"
- stab.Volume = 0.5
- islunging = false
- Tool.Activated:connect(function()
- islunging = true
- stab.PlaybackSpeed = math.random(80, 125)/100
- stab:Stop()
- stab:Play()
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Lunge"
- Anim.Parent = Tool
- wait(0.25)
- islunging = false
- wait(0.40)
- end)
- part = Instance.new("Part",game.Workspace)
- part.Anchored = true
- part.CFrame = CFrame.new(1000000,1000000,1000000)
- function thinghere(plr,action,hit)
- if islunging then
- part.CFrame = hit
- exists = true
- end
- 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.Button1Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E.OnServerEvent:Connect(thinghere)
- local function damagePlayer(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if humanoid then
- local explosion = Instance.new("Explosion")
- explosion.BlastRadius = 20
- explosion.Position = part.Position
- explosion.Parent = part
- wait(0.5) -- Wait for reset time duration
- end
- end
- part.Touched:connect(damagePlayer)
Add Comment
Please, Sign In to add comment