Ad
Log in to vote
0

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

Asked by 3 years ago

Can someone help? Thanks it's appreciated.

1 answer

Log in to vote
0
Answered by
RoboFrog 380 Moderation Voter
3 years ago

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
0
Local script or normal? antlerer 28 — 3y
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. RoboFrog 380 — 3y
0
It doesnt work antlerer 28 — 3y
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? RoboFrog 380 — 3y
Ad

Answer this question