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

my ImageLabel wont move any reason why?

Asked by 5 years ago
Edited 5 years ago
local TeleportGui = game.StarterGui:WaitForChild('TeleportGui')
local Frame = TeleportGui.Frame
local ImageLabel = Frame.ImageLabel
rs = game:GetService("RunService").RenderStepped
local ContentProvider = game.ContentProvider



    while true do 
    ImageLabel.Rotation = ImageLabel.Rotation + 1
    rs:wait()

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

0
Lmao dude what are the errors specified in the output panel. Is the GUI appearing at all as you have not made it clear. Making an element of ScreenGui spin is to do with TweenService rather than RenderStepped, but that's what I think. DecisiveTech 2 — 5y
0
heres the thing it works for other places but not this one for some reason maybe because I placed it in ReplicatedFirst also if there were errors I would have fixed them and I wouldn't have posted it User#22788 5 — 5y
0
We are not aware of your scripting abilities. We cannot assume you know what the output is or how to use it effectively. Always give us as much information about the problem as possible. What else have you tried? T0XN 276 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

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.

local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local TeleportGui = playerGui:WaitForChild('TeleportGui')
local Frame = TeleportGui.Frame
local ImageLabel = Frame.ImageLabel
Ad

Answer this question