How do i make the player fling when an object is touched?

I have made a tool, and inside, I put scripts on where I want the event to happen. I need help on how to make the player “fling”. this is what I have tried so far, but it just makes the person sit. How do I make it so that the player goes forward? Do I need to use vector3?

script.Parent.Touched:Connect(function()
	game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Sit = true


wait(3)
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Sit = false
end)

If I did anything wrong, please don’t hesitate to let me know, I am still learning.

2 Likes

You change the player’s velocity after it is touched. Also I don’t know if it will work on client-side. Otherwise you could always do that on the server.

3 Likes