local B=script.Parent enabled=true local f=nil function makeMeGhostly(B)if f==nil then return end local e={"\072\101\097\100";"\084\111\114\115\111";"\076\101\102\116 \076\101\103";"\082\105\103\104\116 \076\101\103","\076\101\102\116 \065\114\109";"\082\105\103\104\116 \065\114\109","\085\112\112\101\114\084\111\114\115\111","\076\111\119\101\114\084\111\114\115\111","\082\105\103\104\116\085\112\112\101\114\065\114\109";"\082\105\103\104\116\076\111\119\101\114\065\114\109";"\082\105\103\104\116\072\097\110\100";"\076\101\102\116\072\097\110\100","\076\101\102\116\076\111\119\101\114\065\114\109";"\076\101\102\116\085\112\112\101\114\065\114\109";"\076\101\102\116\076\111\119\101\114\076\101\103","\076\101\102\116\085\112\112\101\114\076\101\103","\082\105\103\104\116\076\111\119\101\114\076\101\103","\082\105\103\104\116\085\112\112\101\114\076\101\103","\082\105\103\104\116\070\111\111\116","\076\101\102\116\070\111\111\116"}for L=1,#e,1 do local N=f:FindFirstChild(e[L])if N~=nil then N.Transparency=B end end end function UpdateGhostState(e)if e==true then makeMeGhostly(0)f=nil else f=B.Parent makeMeGhostly(.5)end end function onActivated()if not enabled then return end enabled=false B.GripForward=Vector3.new(-0.981,.196,0)B.GripPos=Vector3.new(-0.5,-0.6,-1.5)B.GripRight=Vector3.new(0,0,-1)B.GripUp=Vector3.new(.196,.981,0)B.Handle.DrinkSound:Play()wait(.8)local f=B.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if f~=nil then UpdateGhostState(false)end B.GripForward=Vector3.new(-1,0,0)B.GripPos=Vector3.new(-0.5,-0.1,0)B.GripRight=Vector3.new(0,0,1)B.GripUp=Vector3.new(0,1,0)enabled=true end function onEquipped()B.Handle.OpenSound:play()end script.Parent.Activated:connect(onActivated)script.Parent.Equipped:connect(onEquipped)function onUnequipped()UpdateGhostState(true)end script.Parent.Unequipped:connect(onUnequipped)

local Tool = script.Parent;

enabled = true

local ghostChar = nil

function makeMeGhostly(trans)


	if ghostChar == nil then return end
	local parts = {"Head", "Torso", "Left Leg", "Right Leg", "Left Arm", "Right Arm", "UpperTorso", "LowerTorso", "RightUpperArm", "RightLowerArm",
		"RightHand", "LeftHand", "LeftLowerArm", "LeftUpperArm", "LeftLowerLeg", "LeftUpperLeg", "RightLowerLeg", "RightUpperLeg",
		"RightFoot", "LeftFoot"}

	for i=1,#parts do
		local p = ghostChar:FindFirstChild(parts[i])
		if p ~= nil then p.Transparency = trans end
	end

	
end

function UpdateGhostState(isUnequipping)

	if isUnequipping == true then
		makeMeGhostly(0)
		ghostChar = nil
	else
		ghostChar = Tool.Parent
		makeMeGhostly(.5)
	end
	

end

function onActivated()
	if not enabled  then
		return
	end

	enabled = false
	Tool.GripForward = Vector3.new(-.981, .196, 0)
	Tool.GripPos = Vector3.new(-.5, -0.6, -1.5)
	Tool.GripRight = Vector3.new(0, -0, -1)
	Tool.GripUp = Vector3.new(0.196, .981, 0)


	Tool.Handle.DrinkSound:Play()

	wait(.8)
	
	local h = Tool.Parent:FindFirstChild("Humanoid")
	if (h ~= nil) then
		UpdateGhostState(false)
	end

	Tool.GripForward = Vector3.new(-1, 0, 0)
	Tool.GripPos = Vector3.new(-.5, -.1, 0)
	Tool.GripRight = Vector3.new(0, 0, 1)
	Tool.GripUp = Vector3.new(0,1,0)


	enabled = true

end

function onEquipped()
	Tool.Handle.OpenSound:play()
end

script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)



function onUnequipped()
	UpdateGhostState(true)
end



script.Parent.Unequipped:connect(onUnequipped)
