Hello, again … I’m kind of in a cycle of needing help with these projects of mine
- What do you want to achieve?
I want to make a mask tool that sits on the players head like this example and creating something similar to this Mask Tool from the Toolbox:
- What is the issue?
I wanted to animate the mask where the player places it on their head, then it sits on their head afterwards.
This is the mask I have currently from the other pre-made rigs I was working on:
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to animate the mask with this script and it ended up not working, I followed a tutorial on how to animate tools to get this script:
The Tutorial Video: How to animate a tool
(I AM NOT AN EXPERIENCED SCRIPTER)
-- ocal player = player:GetService("Players").LocalPlayer
local character = player.Character
local animation = script.Parent:FindFirstChild("Animation")
local maskAnimation = character.Humanoid:LoadAnimation(animation)
local canSwing = true
local debounce = 1
script.Parent.Activated:Connect(function()
if canSwing then
canSwing = false
maskAnimation:Play()
wait(debounce)
canSwing = true
end
end)
I tried looking for other tutorials that were related to what I wanted to achieve but ended up not finding anything similar enough to help script and animate it how I intended.
To keep it simple, How do I animate and or get the tool to sit on the players head?
(And am I doing this right?)