【问题标题】:How do I stop the default walking animation in Roblox?如何停止 Roblox 中的默认步行动画?
【发布时间】:2020-09-26 01:20:42
【问题描述】:

我想锚定主要部分,以固定玩家,但如果我在他们行走时锚定它,即使他们释放步行键,它也会播放行走动画。如何暂停/停止默认的行走动画?

【问题讨论】:

    标签: roblox


    【解决方案1】:

    要固定播放器,您可以暂停控件,如下所示:

    controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()
    
    wait(5)
    
    --suspending controls for 5 seconds:
    controls:Disable()
    wait(5)
    
    --resuming controls
    controls:Enable()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-15
      • 2011-10-19
      • 1970-01-01
      • 1970-01-01
      • 2016-07-14
      • 1970-01-01
      • 2017-10-02
      • 1970-01-01
      相关资源
      最近更新 更多