Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a text label rotate from side to side?

Can someone help? Thanks it's appreciated.

1 answer

✓ Accepted answer

All you would need to do is modify the Position property.

You would want to use this with a loop for best effect. Be sure to include a wait of some sort to make it actually look like it's moving:

local xcurr = 0 -- The current value.
for i = 1,10 do -- 10 is how many times it runs.
		xcurr = xcurr + 0.01 -- This is how far it moves each time
		script.Parent.Position = UDim2.new(xcurr, 0, 0 0) -- Note the location of xcurr
		wait(.001)
end

4 comments

0

Local script or normal?

0

In a local script it'd just run, in a normal script it'd need to be called upon. In a local script, you could use a "repeat wait() until x==y" to facilitate it running.

0

It doesnt work

0

The script posted above does work, as to I've used it numerous times. What kind of script did you use, and how did you facilitate running it?

This discussion is preserved as it was. New answers, comments, and votes are closed.