Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make this script put the number that is given into a textlabel??

Asked by 7 years ago

I want to make it where the random number outputted by the script is put into a textlabel in text form, but how??

local numbers = {}
for i = 1, 100 do
table.insert(numbers, i)
end

function chooserandom()
local sel = numbers[math.random(1, #numbers)]
for i,v in pairs(numbers) do
if v == sel then
table.remove(numbers, i)
end
end
return sel
end
0
Um, I don't see any attempt at accessing or creating a TextLabel? Try it. Shawnyg 4330 — 7y

Answer this question