我的问题是我对补间服务缺乏经验;但是我想创建一个GUI,其大小介于{0,1380},{0,236}到{0,736},{0,236}
我已经尝试过将-1循环到大小上,但这对我不起作用。我知道,如果以下代码比较混乱并且可以改进,则无需告诉我。我已经忽略了补间服务的内容,因为它太长了。
local RandomNumber = math.random(1000, 9999)
local text = "Hello there mlemer"..RandomNumber.. ", My name is GoodBoi, would you like to taste some bepis?"
local textlabel = script.parent.TextLabel
script.Parent.Parent.Play.Play.MouseButton1Click:Connect(function()
for i = 1, #text do
textlabel.Text = string.sub(text, 1, i)
wait(0.1)
end
end)
if textlabel.Text == text then
currentTween2 = tweenToPos(move, onscreenPos2)
currentTween3 = tweenToPos(move2, onscreenPos3)
currentTween2:Play()
currentTween3:Play()
end