Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

my ImageLabel wont move any reason why?

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

3 comments

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.

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

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?

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.