--Script made by Shaakra--


wait(5)

local owner = script.Parent.Parent.Name
local db = false

function onTouched( part )

	if db == true then return end
	db = true

	if part.Parent == nil then wait(0.1) db = false return end

	if part.Parent.Name == owner then wait(0.1) db = false return end

	local h = part.Parent:findFirstChild("Humanoid")
	if h == nil then wait(0.1) db = false return end

	if part.Parent:findFirstChild("Infected") ~= nil then wait(0.1) db = false return end

	if game.Players:findFirstChild(part.Parent.Name) == nil then wait(0.1) db = false return end

	local larm = h.Parent:findFirstChild("Left Arm")
	local rarm = h.Parent:findFirstChild("Right Arm")
							
	if larm ~= nil then larm:remove() end
	if rarm ~= nil then rarm:remove() end

	local zee=script.Parent--.Parent:findFirstChild("zarm")

	if zee == nil then wait(0.1) db = false return end

	local zlarm=zee:clone()
	local zrarm=zee:clone()

	local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
	zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
	zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
	zlarm.Parent=h.Parent
	zrarm.Parent=h.Parent
	zlarm:makeJoints()
	zrarm:makeJoints()
	zlarm.Anchored=false
	zrarm.Anchored=false
	wait(0.1)
	h.Parent.Head.Color=zee.Color

	local newtag = script.Parent.Parent.Infected:clone()
	newtag.Parent = h.Parent

	wait(0.1)
	db = false

end

script.Parent.Touched:connect(onTouched)
