local l=game:GetService("\068\101\098\114\105\115")local u=game:GetService("\080\108\097\121\101\114\115")local k=Random.new()local T=script.Parent local N=(T:WaitForChild("\079\119\110\101\114")).Value local q=N.Name local S=49 local e=500 local function h(u)local k=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")k.Name="\099\114\101\097\116\111\114"k.Value=N k.Parent=u l:AddItem(k,2)end local function w(l)return l and(N and(not l.Neutral and(not N.Neutral and l.TeamColor==N.TeamColor)))end T.Touched:Connect(function(l)local k=l.Parent:FindFirstChildWhichIsA("\072\117\109\097\110\111\105\100")or l.Parent.Parent:FindFirstChildWhichIsA("\072\117\109\097\110\111\105\100")if k and k.Health>0 then local l=k.Parent if l then if l.Name~=q then local T=u:GetPlayerFromCharacter(l)if T and w(T)then return end h(k)k:TakeDamage(S)k.WalkSpeed=0 wait(3)k.WalkSpeed=16 end end end end)l:AddItem(T,e)
--

local ds = game:GetService("Debris")
local ps = game:GetService("Players")

local rng = Random.new()

local potato = script.Parent
local potatoOwner = potato:WaitForChild("Owner").Value

local ownerName = potatoOwner.Name
local dmg = 49
local lifetime = 500


local function tagHum(hum)
	local tag = Instance.new("ObjectValue")
	tag.Name = "creator"
	tag.Value = potatoOwner
	tag.Parent = hum
	ds:AddItem(tag, 2)
end

local function isTeamMate(hitPlr)
	return (hitPlr and potatoOwner and not hitPlr.Neutral and not potatoOwner.Neutral and hitPlr.TeamColor == potatoOwner.TeamColor)
end


potato.Touched:Connect(function(hit)
	local hitHum = hit.Parent:FindFirstChildWhichIsA("Humanoid") or hit.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
	if hitHum and hitHum.Health > 0 then
		local hitChr = hitHum.Parent
		if hitChr then
			if hitChr.Name ~= ownerName then
				local hitPlr = ps:GetPlayerFromCharacter(hitChr)
				if hitPlr and isTeamMate(hitPlr) then
					return
				end
				tagHum(hitHum)
				hitHum:TakeDamage(dmg)
				hitHum.WalkSpeed = 0
				wait(3)
				hitHum.WalkSpeed = 16
			end
		end
	end
end)

ds:AddItem(potato, lifetime)
