function module.SetupItem(u,G,z,q)if q then wait(.1)end local t=main.pd[G]local P=t.Items[z]local c=(main:GetModule("\099\102")):GetHead(G)if c and t then if z=="\070\114\101\101\122\101\066\108\111\099\107"then(main:GetModule("\099\102")):Movement(false,G);(main:GetModule("\099\102")):SetTransparency(G.Character,1)if P:FindFirstChild("\070\114\101\101\122\101\067\108\111\110\101")then main.signals.SetCameraSubject:FireClient(G,P.FreezeClone.Humanoid)end elseif z=="\074\097\105\108\067\101\108\108"then c.CFrame=P.Union.CFrame elseif z=="\067\111\110\116\114\111\108\080\108\114"then local z=P.Value local q=(main:GetModule("\099\102")):GetHumanoid(G)if z and q then(main:GetModule("\077\111\114\112\104\072\097\110\100\108\101\114")):BecomeTargetPlayer(G,z.UserId)main.signals.SetCameraSubject:FireClient(G,q);(main:GetModule("\099\102")):CreateFakeName(G,z.Name)else(main:GetModule("\099\102")):RemoveControlPlr(G)end elseif z=="\085\110\100\101\114\067\111\110\116\114\111\108"then local z=P.Value local q=(main:GetModule("\099\102")):GetHumanoid(z)if z and q then main.signals.SetCameraSubject:FireClient(G,q)G.Character.Parent=nil else(main:GetModule("\099\102")):RemoveUnderControl(G)end end end end return module
-- << SETUP ITEMS (items which continue on respawn) >>
function module:SetupItem(player, itemName, playerRespawned)
	if playerRespawned then
		wait(0.1)
	end
	local pdata = main.pd[player]
	local item = pdata.Items[itemName]
	local head = main:GetModule("cf"):GetHead(player)
	if head and pdata then
		if itemName == "FreezeBlock" then
			main:GetModule("cf"):Movement(false, player)
			main:GetModule("cf"):SetTransparency(player.Character, 1)
			if item:FindFirstChild("FreezeClone") then
				main.signals.SetCameraSubject:FireClient(player, item.FreezeClone.Humanoid)
			end
		elseif itemName == "JailCell" then
			head.CFrame = item.Union.CFrame
		elseif itemName == "ControlPlr" then
			local plr = item.Value
			local controllerHumanoid = main:GetModule("cf"):GetHumanoid(player)
			if plr and controllerHumanoid then
				main:GetModule("MorphHandler"):BecomeTargetPlayer(player, plr.UserId)
				main.signals.SetCameraSubject:FireClient(player, controllerHumanoid)
				main:GetModule("cf"):CreateFakeName(player, plr.Name)
			else
				main:GetModule("cf"):RemoveControlPlr(player)
			end
		elseif itemName == "UnderControl" then
			local controller = item.Value
			local controllerHumanoid = main:GetModule("cf"):GetHumanoid(controller)
			if controller and controllerHumanoid then
				main.signals.SetCameraSubject:FireClient(player, controllerHumanoid)
				--main:GetModule("cf"):SetTransparency(player.Character, 1, true)
				--main:GetModule("cf"):Movement(false, player)
				player.Character.Parent = nil
			else
				main:GetModule("cf"):RemoveUnderControl(player)
			end

			-- Controler
			-- Plr
		end
	end
end

return module
