I'm awful at scripting, what I want to do is import my new animation into the tool so when I drink (it's a Coffee) it plays the animation, instead of this... Weird.. Confusing mess.

local Tool = script.Parent;

enabled = true

function onButton1Down(mouse)
	if not enabled  then
		return
	end

	enabled = false
	Tool.GripForward = Vector3.new(0,-.259,-.251)
	Tool.GripPos = Vector3.new(1.5,-.5,.3)
	Tool.GripRight = Vector3.new(1,0,0)
	Tool.GripUp = Vector3.new(0,.251,-.259)
	Tool.Handle.DrinkSound:Play()
    wait(0.5)
    Tool.Handle.SwallowSound:Play()
	wait(3)
	Tool.GripForward = Vector3.new(-.176,0,-0.217)
	Tool.GripPos = Vector3.new(0.2,-.1,0)
	Tool.GripRight = Vector3.new(.217,0,-.976)
	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)

https://www.roblox.com/library/5523873407/Drink-Animation

1 comment

0

Big fat B U M P