I have custom animations that work while the player is swinging in my golf game, and they work fine. however to make them work, I had to rename my local script in starter character to “Animate” so that the player has no other animations. if I don’t do this, the core animations completely screw up my custom ones.
without core animations:
with core animations:
is there any way to completely turn off core animation while I’m golfing, and re-enable them when I exit? thanks
update:
I just realized I might not need to do this anyways because there won’t be any points in the game where the player will be able to freely walk around, so the animations aren’t needed, but if somebody has a solution to this, that would be great thanks.
Are you using a tool for the club?
Looks like the tool holding animation is the only one that’s interfering with the club
If you are… you can use this to disable tool hold anim
Put that in ServerScriptService
local NOHANDOUT_ID = 04484494845
local function DisableHandOut(character)
local Animator = character.Animate
local Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/asset/?id="..NOHANDOUT_ID
local ToolNone = Animator:FindFirstChild("toolnone")
if ToolNone then
local NewTool = Instance.new("StringValue")
NewTool.Name = "toolnone"
Animation.Name = "ToolNoneAnim"
Animation.Parent = NewTool
ToolNone:Destroy()
NewTool.Parent = Animator
end
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
DisableHandOut(character)
end)
end)