📜  动画事件触发太多次 roblox - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:55.787000             🧑  作者: Mango

代码示例1
local connection
connection = animations.shootWithPump:GetMarkerReachedSignal("Pump"):Connect(function()
        connection:Disconnect()
    PlayGunSound(TempTool.Sounds.Pump, TempToolBodyAttach, 20)
    flingshell(TempTool)
end)