Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

Can someone help? Thanks it's appreciated.

1 answer

Log in to vote
0
Answered by
RoboFrog 400 Moderation Voter
9 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 33 — 9y
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 400 — 9y
0
It doesnt work antlerer 33 — 9y
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 400 — 9y
Ad

Answer this question