Item sword
Key RequiredUniversal

Item sword

Universal Scriptdavilucasjunqueiracdavilucasjunqueirac 2.6K views 119 executesUpdated Aug 2, 2025
Unrated
00
Lua Script•58 lines (1433 chars)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local backpack = player:WaitForChild("Backpack")

if backpack:FindFirstChild("KillSword") then
	backpack.KillSword:Destroy()
end

local tool = Instance.new("Tool")
tool.Name = "KillSword"
tool.RequiresHandle = true
tool.CanBeDropped = false

local handle = Instance.new("Part")
handle.Name = "Handle"
handle.Size = Vector3.new(1, 4, 1)
handle.Color = Color3.fromRGB(50, 50, 50)
handle.Material = Enum.Material.Metal
handle.Anchored = false
handle.CanCollide = false
handle.TopSurface = Enum.SurfaceType.Smooth
handle.BottomSurface = Enum.SurfaceType.Smooth
handle.Parent = tool

local weld = Instance.new("WeldConstraint", handle)
weld.Part0 = handle

local swordSound = Instance.new("Sound")
swordSound.SoundId = "rbxassetid://12222216"
swordSound.Volume = 1
swordSound.Parent = handle

tool.Equipped:Connect(function()
	swordSound:Play()
end)

tool.Activated:Connect(function()
	local character = player.Character
	if not character then return end

	local touchConnection
	touchConnection = handle.Touched:Connect(function(hit)
		local victim = hit:FindFirstAncestorOfClass("Model")
		if victim and victim ~= character then
			local hum = victim:FindFirstChildOfClass("Humanoid")
			if hum and hum.Health > 0 then
				hum.Health = 0
			end
		end
	end)

	wait(0.5)
	if touchConnection then
		touchConnection:Disconnect()
	end
end)

tool.Parent = backpack

Features & Information

Chat gpt script

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts