Is it possible?
I would like to have a custom sit animation for my vehicle driver seat, I already have made the animation but would like to know how to change the default one to the custom one.
Is it possible?
I would like to have a custom sit animation for my vehicle driver seat, I already have made the animation but would like to know how to change the default one to the custom one.
If I understood you right,
you want to have a âsitting animationâ ?
You could load the animation when the player sits on the vehicle seat.
this could help you
Yes you can do it with an animation script
first,
find animation script in your character model then
and select the âsitAnimâ
change the animation Id
you can do with a script
The result
This was the solution which worked! Thanks.
youâre welcome I happy for helping people
local Game = game
local Players = Game:GetService("Players")
local function OnPlayerAdded(Player)
local function OnCharacterAdded(Character)
local Animate = Character:FindFirstChild("Animate") or Character:WaitForChild("Animate")
local SitValue = Animate:FindFirstChild("sit") or Animate:WaitForChild("sit")
local SitAnimation = SitValue:FindFirstChild("SitAnim") or SitValue:WaitForChild("SitAnim")
SitAnimation.AnimationId = "rbxassetid://0" --Change '0' for the desired animation's ID.
end
Player.CharacterAdded:Connect(OnCharacterAdded)
end
Players.PlayerAdded:Connect(OnPlayerAdded)
Just providing the script to achieve this.