I made this, so far all it does is rotate randomly around the place. How can I make it so it will only rotate up and down?
local plane = game.Workspace.Union
local player = game.Players.LocalPlayer
repeat wait() until player.Character
local character = player.Character
local mouse = player:GetMouse()
while true do
wait()
plane.CFrame = CFrame.new( plane.Position, Vector3.new(-90,-90,mouse.Hit.p.Z));
end

1 comment
The Y-Axis is vertical.