I made a script that's supposed to turn a player upside down.
But when i test it the player falls over
This script is inside of a tool

script.Parent.Activated:Connect(function()
	local X = script.Parent.Parent.HumanoidRootPart.Orientation.X
	local Y = script.Parent.Parent.HumanoidRootPart.Orientation.Y
	script.Parent.Parent.HumanoidRootPart.Orientation = Vector3.new(X, Y, 180)
end)

help