I’ve attempted to make my own Animator for a Custom Character but i’m not sure how to get this to properly function because it seems right, but once I test it out, it doesn’t seem to work at all.
My script:
--local values
local plr = game.Players.LocalPlayer
local char = script.Parent
local mouse = plr:GetMouse()
local Humanoid = char.Humanoid
local Animator = Humanoid.Animator
local AnimController = char.AnimationController
local UIS = game:GetService("UserInputService")
--Animations Below--
local SideSwipe = script.SideSwipe --swing tail left or right
local Walk = script.Walk
local Run = script.Run
local Trot = script.Trot
local DownSwipe = script.DownSwipe --hit the ground with tail
local Drink = script.Drink
local Eat = script.Eat
local Sit = script.Sit
local Lay = script.Lay
local LTurn = script.TurnLeft --Strafing to the left side
local RTurn = script.TurnRight --Strafing to the right side
local Sniff = script.Sniff
local Graze = script.Graze
local Roar = script.Roar --For all roars
--Animation Functions--
--[[Side Swipe Animation]]--
mouse.Button1Down:Connect(function()
local SSAnim = Animator:LoadAnimation(SideSwipe)
SSAnim:Play()
end)
Here’s a little video to show what I mean.
robloxapp-20230411-1455494.wmv (1.5 MB)
I have looked at many posts and could not find an answer, so if somebody
can offer advice/help, that would be very appreciated