1 - Okay, i have a viewport frame but the part i have rotating in the frame isn’t actually rotating on the frame. why is this?
2 - i have this in my script:
for i = 1, #Name do
NameText.Text = string.sub(Name, 1, i)
wait(0.04) --This is the speed of the text
end
for i = 1, #Desc do
DescText.Text = string.sub(Desc, 1, i)
wait(0.04) --This is the speed of the text
end
for i = 1, #Comment do
SKText.Text = string.sub(Comment, 1, i)
wait(0.04) --This is the speed of the text
end
end
end)
Is it possible to make them run at the same time, i want to save time because it needs to be a somewhat fast action.
You can use coroutines to perform multiple tasks at the same time.
coroutine.wrap(function()
for i = 1, #Name do
NameText.Text = string.sub(Name, 1, i)
wait(0.04) --This is the speed of the text
end
end)()
coroutine.wrap(function()
for i = 1, #Desc do
DescText.Text = string.sub(Desc, 1, i)
wait(0.04) --This is the speed of the text
end
end)()
for i = 1, #Comment do
SKText.Text = string.sub(Comment, 1, i)
wait(0.04) --This is the speed of the text
end
Adding coroutine fixed my second issue! thank you!
as for the first issue:
I might be able to, but it’s split into multiple scripts.
Nevermind, the issue was that it was a server script when it was meant to be local!
thank you for your help!