I’m trying to make a dummy get knocked back when it gets hit by a smash attack, and I am using AssemblyLinearVelocity to do so. It works, but only after the studio server has been active for about 1 minute. Otherwise, the dummy just stands there.
The way it is being implemented is by sending a velocity value to the local script of the player who has initated the attack (using a remote event) which sets the AssemblyLinearVelocity of the dummy’s humanoid root part.
KBRemote.OnClientEvent:Connect(function(Velocity, NPC)
if NPC == nil then
humrp.AssemblyLinearVelocity = Velocity
else
--sets the npc's velocity
NPC.AssemblyLinearVelocity = Velocity
end
end)
I have already made sure that it gets to the NPC.AssemblyLinearVelocity line, but I’m not sure why its not reacting until 1ish minutes after the studio server has began