This script's supposed to push the player back, someone fixed it for me, and when you press "f", if your mouse is on the player then it'll push the player backwards, and it'll play an animation looking like you pushed them, but it didn't work?? It didn't even play the animation, he told me to make it local and put into workspace did that didn't work.
wait()
local User = game.Players.LocalPlayer
local UserMouse = User:GetMouse()
Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/Asset?ID=165757504"
Animation.Name = "Force push."
local animTrack = User.Character.Humanoid:LoadAnimation(Animation)
while wait() do
if UserMouse .Target then
if UserMouse .Target.Parent:FindFirstChild("Humanoid") or UserMouse.Target.Parent.Parent:FindFirstChild("Humanoid") then
UserMouse.KeyDown:connect(function(key) -- keydown function
if key == "f" then
animTrack:Play()
end
end)
else
animTrack:Stop()
end
end
end

1 comment
...........