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

How can I script a moving GUI?

Can you hrlp me with amking a script to make a gui

1 comment

2

ScriptingHelpers is not a request site. We ask all users to make an attempt at creating a code before posting here. Please read the help article on How To Post a Good Question and Answer before asking another question.

1 answer

Well this is scrolls on the top of the screen


local screen = Instance.new("ScreenGui")
screen.Parent = Game.Players.LocalPlayer.PlayerGui
local text = Instance.new("TextLabel")
text.Parent = screenGui
text.Text = "Scrolling Text :D"
text.Size = UDim2.new(0, 100, 0, 30)
 
local xPosition = 1
local speed = 0.0025
while true do
	xPosition = xPosition - speed
	textLabel.Position = UDim2.new(xPosition, 0, 0, 0)
	if xPosition < -0.1 then
		xPosition = 1
	end
	wait()
end

This should work enjoy :)

1 comment

0

If it doesn't work tell me.

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