So, this is a script that allows the animation to play when a player presses a certain key. But I'm wondering how to make it do force push? Like how would you make it so if your mouse is on the player, then the player "Sits" and, then gets flung just alittle bit?
User = game.Players.TheReapersComing
UserMouse = User:GetMouse()
Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/Asset?ID=165757504" -- Animation's id to make it look like the player's pushing the other player.
Animation.Name = "Force push."
animTrack = User.Character.Humanoid:LoadAnimation(Animation)
UserMouse.KeyDown:connect(function(key) -- keydown function
if key == "f" then
animTrack:Play()
end
end)

1 comment
NOTE: Like how would you make it push, AND do the animation?