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

Why does this script work in studio but not in-game?

So this is supposed to make my ImageLabel move up and down over and over, it works in studio, but not in-game. Here is the script:

while true do
	for i = 1,10 do
		wait()
		script.Parent.Position = script.Parent.Position + UDim2.new(0,0,.01,0)
	end
	wait(.25)
	for i = 1,10 do
		wait()
		script.Parent.Position = script.Parent.Position - UDim2.new(0,0,.01,0)
	end
end

1 answer

✓ Accepted answer

The most common reason things like this happen is that you are using a regular script to manipulate things on the client -- like GUIs -- when you should be using a local script instead.

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