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

Why is this not working?

Asked by 8 years ago

This script i made which is in StarterGui>ScreenGui>TextBox not working it is souposed to rotate a gui to give a effect i want but its not doing it here

wait(1)
game.StarterGui.ScreenGui.TextBox.Rotation = 1.2
wait(0)
game.StarterGui.ScreenGui.TextBox.Rotation = 1.24
wait(0)
game.StarterGui.ScreenGui.TextBox.Rotation = 1.29
wait(0)
game.StarterGui.ScreenGui.TextBox.Rotation = 1.3
wait(0)
game.StarterGui.ScreenGui.TextBox.Rotation = 1.29
wait(0)
game.StarterGui.ScreenGui.TextBox.Rotation = 1.24
wait(1)
game.StarterGui.ScreenGui.TextBox.Rotation = 1.2

Thanks if you corrected my fault also trying to use end for the last is giving me a error eof.

2 answers

Log in to vote
0
Answered by
StoIid 364 Moderation Voter
8 years ago

A question like this was answered before, you should look at the answers that were given and it should answer your question.

Link to the question

Hope this helped.

0
Sorry couldnt understand that answer ;c Coolboyok11 64 — 8y
Ad
Log in to vote
0
Answered by
ferano 0
8 years ago
Edited 8 years ago

Here is what StolidDarkness's answer is in summation (note none of this is truly mine):

This is because you are editing the gui that is located in StarterGui. You only get a copy of the gui's you place in StarterGui same goes for StarterPack.

When you change the text of the gui in the StarterGui it is not going to show for you because you do not have a copy of the now edited gui. If you want the edits to show you have to edit the Players gui located in PlayerGui (game.Players.PlayerName.PlayerGui)

To do this all at once and use a single script (the "efficient way" -Pyrondon) you're going to need to use a loop.

Info On Loops: http://wiki.roblox.com/index.php?title=Loops

Example:

game.StarterGui.Intermission.Countdown.Visible = true
for i = 30,1,-1 do --Another way of going from 30 to 1 by counting down.
    game.StarterGui.Intermission.Countdown.Text = "Intermission: " ..i --This is what changes the       numbers
    wait(1)
end
game.StarterGui.Intermission.Countdown.Visible = false
0
Still didnt it you copied the last answer's link and posted it here ;/ "Intermission" "Text" when its Rotation.. Coolboyok11 64 — 8y
0
This is the answer in the best explained way though. ferano 0 — 8y

Answer this question