local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RockModule = require(ReplicatedStorage.Modules.Details.RockModule)
local player = Players.LocalPlayer
print("LocalScript started for:", player.Name)
local char = player.Character or player.CharacterAdded:Wait()
print("Character loaded:", char.Name)
local humanoid = char:WaitForChild("Humanoid")
print("Humanoid found")
local animator = humanoid:WaitForChild("Animator")
print("Animator found")
-- Replace with your uploaded animation's numeric ID
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://96379664082295" -- must be numeric ID, not Moon export code
print("Animation ID set to:", anim.AnimationId)
local track = animator:LoadAnimation(anim)
print("Animation track loaded")
-- Hook marker
track:GetMarkerReachedSignal("StompEffect"):Connect(function()
print("✅ Marker reached: StompEffect")
local leftLeg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftLowerLeg")
if leftLeg then
print("Found leg:", leftLeg.Name, "creating stomp effect...")
local stompCFrame = leftLeg.CFrame * CFrame.new(0, 0, -4)
RockModule.Stomp(stompCFrame)
else
print("❌ No leg found")
end
end)
-- Play animation automatically
print("Playing animation now...")
track:Play()
print("Animation should be playing")
hi i made a rockj module for my aniamtion , ive used an anim event in moon anim for it to work but it never fres , the marker reached print never prints but everything else does , this was in a local script in sps , i havent done any more for it to work but its been 4 days of trying idk what to do somene please help