How to make a marometa system?

First of all I’m going to clarify what I want: I want to make a system which when the player presses a key then spins on the floor (return in floor) to be a little more specific like the one in combat warriors [roblox] even though it has a tool equipped works clearly I need an animation etc but I need to know what commands I should use in my script but I don’t ask for a script I just ask for the commands I need

So basically to detect when player pressed a key, you should use UserInputService, function InputBegan: UserInputService | Roblox Creator Documentation (here you can read about this service)

local UserInputService = game:GetService("UserInputService")

UserInputService.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.A then
		-- What happens after pressing a specific key, should be here (in this case key is A)
	end
end)

Then after running function, you need to load animation to your humanoid and then play it: Animation | Roblox Creator Documentation (here you can read about animations). Of course, you can also do a cooldown that won’t trigger another animation halfway through.

I hope I helped you! :slight_smile:

Thanks for the help, really, but if you want to change the position of the player when the animation runs, how would you do it?

I know that this topic has already passed from the recent category but in the same way I need to know how to change the position of the player while the animation of walking around is running

In this case, the easiest way to do this is to change the CFrame of HumanoidRootPart to the CFame of the part you want to teleport the player to. Here you can read about CFrames: CFrames | Roblox Creator Documentation

That’s not what I mean, it’s like a warrior combat system which gives a displacement effect according to the animation