You can write your topic however you want, but you need to answer these questions:
Hello there! I want my drink animation to play while the walking animation plays.
- I used the UserinPutService to play a Drink Animation whenever the screen is clicked which works fine, but it keeps stopping the walking animation. Animation Priority: Action
I have looked on the dev forum and other websites already but cannot find anything which helped.
local player = game.Players.LocalPlayer
local anim = script.Parent.Animation
local Service = game:GetService("UserInputService")
local debounce = false
Service.InputBegan:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
local tool = player.Character:FindFirstChild("Coffee Cup")
if debounce == false and tool then
debounce = true
local animation = player.Character.Humanoid:LoadAnimation(anim)
animation:Play()
wait(1)
debounce = false
end
end
end)
Thanks for reading.
Have an amazing day/night!
-Maxi