Wondering how to make the player vault over an object by pressing E

Hey there forums, I was wondering about how to approach creating this system. I believe I have to make an animation then initiate the animation by using the ProximityPrompt is the way I want to do this. I was wondering if anybody had any pointers to how I could go about doing this, any useful tutorials or resources would be great!

This is a very simple thing to do:

Example:

local Part = script.Parent -- your part

local ProximityPrompt = Part.ProximityPrompt
ProximityPrompt.Triggered:Connect(function(Player) --when triggered
	
	local Character = workspace:FindFirstChild(Player.Name) -- or use player.character
	if Character ~= nil then -- if character isn't equal to nil then --
		
		local Humanoid = Character:FindFirstChild("Humanoid")
		local Animation = Part.Animation --your animation
			
		local Track = Humanoid.Animator:LoadAnimation(Animation)
		Track:Play()
	end	
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.