So, my issue is getting the Tool Handle to reach the face of the player when they drink. Instead they look at it like they're inspecting it. I've attached the link below:

(http://https://gyazo.com/92ec471167c62848bd809bb6f760cff8)


local Tool = script.Parent;

enabled = true

function onButton1Down(mouse)
	if not enabled  then
		return
	end

	enabled = false
	Tool.GripForward = Vector3.new(-770,-.359,-.351)
	Tool.GripPos = Vector3.new(1.5,0,.3)
	Tool.GripRight = Vector3.new(1,0,0)
	Tool.GripUp = Vector3.new(0,.200,-.359)
	Tool.Handle.DrinkSound:Play()
	Tool.Handle.
    wait(2)
    Tool.Handle.SwallowSound:Play()
	wait(3)
	Tool.GripForward = Vector3.new(-.376,0,-0.217)
	Tool.GripPos = Vector3.new(0.2,-.1,0)
	Tool.GripRight = Vector3.new(.217,0,-.376)
	Tool.GripUp = Vector3.new(0,1,0)
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print("Mouse not found")
		return 
	end

	mouse.Icon = "rbxasset://textures\\GunCursor.png"
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)

2 comments

0

you have a random Tool.Handle. and then there is nothing after that

0

The script example is broken up because of how the site lays it out.