Hi there, I’m a newer scripter and I’ve just gotten to the point where I want to use the GetMarkerReachedSignal() method. I’ve read the docs and it seems like the event should fire but it’s not so I’m lowk confused.
For context I’ve made the animation using blender and added a marker called ‘Name’ using the plugin. I’m not sure how markers are supposed to show up in the workspace or if they’re supposed to parented to a keyframe but this is how it showed up in the workspace.
local RS = game:GetService("ReplicatedStorage")
local Services = RS.Services
local Remotes = RS.Remotes
local abilityEvent = Remotes.Ability
local AnimHandler = require(Services.AnimationPreloader)
local keyframes = workspace["LOFST PLS"]:GetKeyframes()
for key, value in keyframes do
print(value:GetMarkers())
end
abilityEvent.OnServerEvent:Connect(function(player)
local Animations = AnimHandler:ClientReplicationInit(player)
local char = player.Character
if not char then return end
local humanoid = char:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
local animator = humanoid.Animator
if not animator then return end
local animTrack = Animations["LOFS[T]"]["Client"]
print(Animations)
local marker = animTrack:GetMarkerReachedSignal("Name")
marker:Connect(function()
print("yo")
end)
animTrack:Play()
end)
Here’s my server script. It’s playing the animation just fine so I’m not really sure why it’s not working other than me not knowing how to use the plugin. Thank you!
