How to rotate a gui with a script

idk what to do i used text.rotate = 90 but it didn’t work
Idk

It would be

TextLabel.Rotation = 90

Do you want the text to rotate or the textbox with the text?

if you want to rotate text in the textbox, you have to put a textbox then set the background transparency to 1 and put a frame behind of the textbox. then do @sshjack answer on the textbox (not on frame)

Here, use this:
This will make it rotate for the entire time.

--// Author: @Midnightific
--// Description: Makes the said parent rotate.
--// License: "MIT License" 

local counter = 0
while true do
	counter = counter + 1
	wait()
	script.Parent.Rotation = counter
end