SussyZets
(SussyZets)
December 6, 2023, 5:44pm
1
Hi, so I am making a battleground game and need help with a cooldown system, what I want to achieve is that whenever the player does an m1 it starts the cooldown and when the current playing animation “end” marker is reached the cooldown ends.
Thanks.
1 Like
Alright I’ll take this.
So, let’s start by playing the animation.
local cooldown = false
local animtrack = humanoid.Animator:LoadAnimation(animationinstance)
animtrack:Play()
cooldown = true
animtrack:GetMarkerReachedSignal("eventname"):Connect(function()
cooldown = false
end)
1 Like
SussyZets
(SussyZets)
December 6, 2023, 6:29pm
3
I alrd tried doing something like this but for some reason it doesn’t work
did you add an animation event TO the animation itself?
SussyZets
(SussyZets)
December 6, 2023, 8:40pm
5
yes i did, ineedtowritethisbcsofroblox
Make sure it’s the correct name.
SussyZets
(SussyZets)
December 11, 2023, 9:33am
7
ye I managed to make it work somehow LOL.
2 Likes
system
(system)
Closed
February 27, 2024, 9:48pm
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.