Hey there.
Trying to scroll through table 'F' in my script
local E = A:WaitForChild('C'):WaitForChild('H')
local F = {"your","my","we","yeet",}
for x123,x124 in pairs(F) do
if E.Text == x124 then
E.Text = F[x123 + 1]
end
end
I plan to put this in a repeat to run it over and over again, where it fades in and shows the next message, then fades out and shows the next one
I thought where I put ``E.Text = F[x123 + 1] it would make E.Text equal to F[2], since x123 is one at the moment.
Where am I wrong
EDIT:
I updated my code to this, but I get 'nil' - you also get some bonus content
repeat
for nn = 0,1,0.05 do
E.TextTransparency = nn
wait(.05)
end
local abcd = #F
for a,b in pairs(F) do
if E.Text == b then
local function yeet1()
if b == #F then
return 1
else
return b + 1
end
end
print(tostring(F[tonumber(yeet1)]))
end
end
for mm = 1,0,-0.05 do
E.TextTransparency = mm
wait(.05)
end
until 1 == 2
while wait() do
for zz = 0,1,0.01 do
wait(.05)
E.TextColor3 = Color3.fromHSV(i,1,1)
end
end
