01 | local TeleportGui = game.StarterGui:WaitForChild( 'TeleportGui' ) |
02 | local Frame = TeleportGui.Frame |
03 | local ImageLabel = Frame.ImageLabel |
04 | rs = game:GetService( "RunService" ).RenderStepped |
05 | local ContentProvider = game.ContentProvider |
06 |
07 |
08 |
09 | while true do |
10 | ImageLabel.Rotation = ImageLabel.Rotation + 1 |
11 | rs:wait() |
12 |
13 | end |
so I put this local script inside replicatedfirst and its for a gui that right when you join it starts spinning but currently its not spinning for some reason anyone know why?
No outputs no nothing
pretty sure I did everything right
If you make changes to a GUI object in StarterGui, you won't see the changes until you respawn. There aren't any errors because the script itself works just fine.
If you want your GUI to have a spinning ImageLabel that's visible to the player, your script will have to change it from inside the player's PlayerGui.
1 | local player = game.Players.LocalPlayer |
2 | local playerGui = player:WaitForChild( "PlayerGui" ) |
3 | local TeleportGui = playerGui:WaitForChild( 'TeleportGui' ) |
4 | local Frame = TeleportGui.Frame |
5 | local ImageLabel = Frame.ImageLabel |