|
https://codetidy.com/7889/sharing.roblox.com
the link isn't a virus, it's pretty much just a less popular, code-friendly version of pastebin |
|
|
op's code
local sect = math.random(10)?
if sect >= 1 and sect < 6 then script.Parent.Image = "http://roblox.com/asset/?id="..bad[math.random(1, #bad)] -- this is defined in my script?
elseif sect >=6 and sect < 9 then script.Parent.Image = "http://roblox.com/asset/?id="..good[math.random(1, #good)] -- this is defined in my script?
elseif sect > 9 then script.Parent.Image = "http://roblox.com/asset/?id="..noice[math.random(1, #noice)] -- this is defined in my script?
end?
?
?
-- Basically, what I want to do is this: choose a term from one of 3 pre-determined sets (#bad, #good, and #noice), depending on the value of a variable (sect). Once that term is chosen, remove it from whatever set it was taken frm. This has to be able to be done no matter what the value of sect is. |
|
|
Because pastebin certainly isn't code-friendly.
|
|
|
i dont like pastebin
respect my choices fam |
|
|
So basically the only thing it doesn't do right now that it should is remove the values?
Also pastebin does support code, and lua, so use it next time. |
|
|
@JarodOfOrbiter
Pastebin has a character limit now, that's why I avoid it at all cost.
@OP
Why not use codeshare, or hastebin? |
|
|
@128
yeah, i just need it to remove the values
@reset
i wanted a less popular site where it wouldn't get lost
|
|
|
Literally, a less popular site INCREASES the chance it will get lost/removed since they typically don't have that big of a server size. |
|
|
Pastebin's free account character limit is 512,000
What are you doing where you need more than half a million letters?
If you really need it you can upgrade to a paid accouunt
Their lifetime membership is on sale Price: $29.95 (Normally 49.95)
Yearly is $23.95
Monthly is $2.95
If you really do need that many characters because you use pastebin type sites a lot, I would suggest upgrading while lifetime is on sale.
Because pastebin is trusted a lot more than some random paste site would be.
(Upgrading will increase your character limit to 10,240,000) |
|
|
I typically need more than half a million characters for making stuff in script builder, and about seven of my scripts I use most of the time require more than 10,240,000 characters.
But meh, that's just me. |
|
|
local example = {"a"; "b"; "c";}
Instance.new("Part", workspace).Name = table.remove(example, math.random(1, #example))
print(#example) --[[> 2]]
Note this will error if 'example' is empty.
To fix that
Instance.new("Part", workspace).Name = tostring(table.remove(example, ((#example > 0) and math.random(1, #example) or 0)) or '')
|
|
|
Even at 100 characters per line that's 102,400 lines
What do your scripts possible do where you actually need that? |
|
|
Typically administration scripts I make |
|
|
I feel like its probably not made efficiently then, but maybe that's a little bit of an assumption, how many commands do you have? |
|
|
Three of my administration scripts are that long, they where made before the removal of local loadstring, so the script was creating LocalScripts also, which contained bits and pieces of my other scripts I've made.
The longest one contains 1,200 commands, but was a group project between me and two others. |
|