How you doin’? So I’ve come across a weird problem where an animation marker is being repeated after each call. For example, after it’s 1st call it runs once. After it’s 18th call it runs 18 times. I know this because it gets printed out 18 times even tho it should only be run once after it’s 18th call. Here’s the code:
SigTrack:GetMarkerReachedSignal("start"):Connect(function()
print("sigtrack Started")
local Lightning = Effects.Lightning:Clone()
Lightning.Name = "QEffect"
Lightning.Parent = Character.UpperTorso
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
tool.BodyAttach.lightningSound:Play()
end)
SigTrack:GetMarkerReachedSignal("end"):Connect(function()
print("Sig track stopped")
local FindQEffect = Character.UpperTorso:FindFirstChild("QEffect")
if FindQEffect then
FindQEffect:Destroy()
end
Humanoid.WalkSpeed = 16
Humanoid.JumpPower = 50
canSigHit = false
animationTraffic = false
end)
Additionally, this is what the output would look like:
Sig track stopped (x2)
sigtrack Started (x3)
Sig track stopped (x4)
sigtrack Started (x5)
Sig track stopped (x5)
Many thanks for actually taking the time to read this! ![]()