Hello Developers!
I’m having an issue with :GetMakerReachedSignal()
. The issue is literally in the title if it weren’t enough. Basically, I have an animation with two events which shows a real wrench and hides a fake wrench and vise-versa. The issue is that even if there are two animation events, it seems to not fire for whatever reason.
This is the snippet of the code (Keep in mind I’m creating an entirely new animator script)
Humanoid.Running:Connect(function(Speed)
if Speed > 0 then
CurrentAnimationTrack:Stop()
CurrentAnimation.AnimationId = Animations.WalkAnimID
CurrentAnimationTrack:Play()
elseif Speed == 0 then
CurrentAnimationTrack:Stop()
CurrentAnimation.AnimationId = Animations.SecondaryAnimID
CurrentAnimationTrack:Play()
CurrentAnimationTrack:GetMarkerReachedSignal("GetWrench"):Connect(function()
Character.Wrench.Transparency = 0
Character.DisplayWrench.Transparency = 1
end)
CurrentAnimationTrack:GetMarkerReachedSignal("PutAwayWrench"):Connect(function()
Character.Wrench.Transparency = 1
Character.DisplayWrench.Transparency = 0
end)
end
end)