There is no errors. What could be the cause? Any help?
game.ReplicatedStorage.Detain.OnServerEvent:Connect(function(plr, part)
print("got")
local playthingy = part.Parent.Name
local playah = game.Players:WaitForChild(playthingy)
local char = playah.Character
local hum = char:WaitForChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://7369895946"
local track = hum:LoadAnimation(anim)
track.Priority = Enum.AnimationPriority.Action
track:Play()
print("played")
end)
Thanks.