#Could anyone please help me?
1 messages · Page 1 of 1 (latest)
pov: you dont read
pov: they want to see the code that isn't working so they can help fix it
idk wdym
a
local textLabel = script.Parent:WaitForChild("TextLabel")
local textBox = script.Parent:WaitForChild("TextBox")
local startButton = script.Parent:WaitForChild("TextButton")
-- moves first character
local scrolling = false
function scrollText(text)
scrolling = true
while scrolling do
text = text:sub(2) .. text:sub(1,1) --
textLabel.Text = text
wait(0.1) -- how fast will text move
end
end
startButton.MouseButton1Click:Connect(function()
scrolling = false
wait(0.1)
scrollText(textBox.Text)
end)
or this one i thinl
because i have 2
local textLabel = script.Parent:WaitForChild("TextLabel")
local textBox = script.Parent:WaitForChild("TextBox")
local startButton = script.Parent:WaitForChild("TextButton")
local scrolling = false
function scrollText(text)
scrolling = true
while scrolling do
text = text:sub(2) .. text:sub(1,1) -- przesuwa pierwszy znak na koniec
textLabel.Text = text
wait(0.1) -- prędkość przewijania
end
end
startButton.MouseButton1Click:Connect(function()
scrolling = false
wait(0.1)
scrollText(textBox.Text)
end)
Uh
** You are now Level 1! **
Like on Discord, use that so it formats better
local textLabel = script.Parent:WaitForChild("TextLabel")
local textBox = script.Parent:WaitForChild("TextBox")
local startButton = script.Parent:WaitForChild("TextButton")
local scrolling = false
function scrollText(text)
scrolling = true
while scrolling do
text = text:sub(2) .. text:sub(1,1) -- przesuwa pierwszy znak na koniec
textLabel.Text = text
wait(0.1) -- prędkość przewijania
end
end
startButton.MouseButton1Click:Connect(function()
scrolling = false
wait(0.1)
scrollText(textBox.Text)
end
That's better
or this one
local textLabel = script.Parent:WaitForChild("TextLabel")
local textBox = script.Parent:WaitForChild("TextBox")
local startButton = script.Parent:WaitForChild("TextButton")
-- moves first character
local scrolling = false
function scrollText(text)
scrolling = true
while scrolling do
text = text:sub(2) .. text:sub(1,1) --
textLabel.Text = text
wait(0.1) -- how fast will text move
end
end
startButton.MouseButton1Click:Connect(function()
scrolling = false
wait(0.1)
scrollText(textBox.Text)
end
Why are you printing all that on the first line?
No your code. First line of code. you're doing print("local yada yada, why that
why is it still surrounded with parenthesis and quotes
not sure
k here u go
removed these
quotes etc
And im making a church monitor that looks like that
a similar one
Did you make these changes in the script itself?
?
you just posted code. Is this not the code you were using?
I was kinda using it
But
It wasnt working
And im making a monitor that will display song text
And that i will be able to edit text in a ui
Did you make the same changes you just did on Discord to the script itself? Or only Discord
Not really sure what do u mean 😅
** You are now Level 2! **
You posted code. I assumed that was the script you were using but wasn't working.
I suggested changes. You edited the code you posted here.
But did you make those same changes to the code in Roblox Studio
I had the same code there and on roblox
And it didnt work like I expected
It to work
Okay so the code isn't causing any errors but it's not doing what you want it to do, that right? after my suggested changes?
Yeah.
Where is the script placed and what kind of script is it
Uh
Ill tell you when i get to my pc oki
Probably 10 mins
Screen GUI > LocalScript
So this is a GUI in the StarterGUI, that right?
May wanna confirm that
You said "I think so". You need to find out if that is true
Yes i had it there
okay, and the problem is what specifically?
Are you wanting it to appear on the monitor you showed me?
Yes.
And that i could change it using a chat command or a ui
Its just what’s easier for u
I'm not sure I understand.
If it's not a SurfaceGUI, it's not going to show on the monitor
Why?
Because it didn’t work
It could be an issue if you put SurfaceGui in StaterGui
You'd have to either set the Adornee property to the screen or put the SurfaceGui on the monitor itself and change the script to a ServerScript
Uh
** You are now Level 3! **