EDIT. GO TO EDIT 2. ignore below
Howdy,
I know the following line is something that excists:
print("I mean this >" ..YourThing.Value.. "< ")
But, can you do this for example too with like
script.Parent.Model(and then here the value).blabla
So like, it has to reach the model named Model1 (If value = 1 ofcourse)
Edit 1
So i mean. If i have a NumberValue set already inside the script (Val = 1 for now) i want to reach this line script.Parent.Model(number).ItemInHere to reach Model1, as 1 is the Value that's been set.
And if the value changes to 2 and the line is runned again, it goes to model2.
EDIT 2
So, this is my script which i want help for
function GetRanNumbPlace(RanNumb)
if RanNumb == 1 then
print("1")
local PlaceID = IDFolder.Place1.Value
NewPlaceTo.Value = PlaceID
elseif RanNumb == 2 then
print("2")
local PlaceID = IDFolder.Place2.Value
NewPlaceTo.Value = PlaceID
elseif RanNumb == 3 then
print("3")
local PlaceID = IDFolder.Place3.Value
NewPlaceTo.Value = PlaceID
elseif RanNumb == 4 then
print("4")
local PlaceID = IDFolder.Place4.Value
NewPlaceTo.Value = PlaceID
elseif RanNumb == 5 then
print("5")
local PlaceID = IDFolder.Place5.Value
NewPlaceTo.Value = PlaceID
else
print("WRONG")
end
end
what i want to make is that instead of manualy chaning the number ( like Place1, Place2, etc) at the lines "local PlaceID = IDFolder.Place1.Value" that it changes the line itself. the RanNumb has already been made, this function is called from another function.
i know there's something possible like IDFolder.Place[Number].Value
But, i can't figure that out.

9 comments
what
You don't get it? Let me edit my post
SPEAK. ENGLISH. HABLA ENGLESE???? i dont understand a single thing you're asking please use proper grammar and spelling in your question
if value == 1 then -- reach model end I don't understand a word
USE PROPER ENGLISH nothing here is coherent??? i know what you're trying to do, and you would do local var = "Model"...Value where value is some suffix to model and then do script.Parent[var].blabla but seriously dude just use proper spelling please
KirokiFreedom. Jesus you're toxic. Don't mind me grammar, i'm Dutch. You know there are other languages in this world then English?
i cant understand anything you're saying though, this is an english form and is meant to be used in english
next time, type your meaning in dutch and translate it using google C:
Greatneil80 if i would do that, it would look like if i was a chinese kid trying to speak English lol. Google Translate sucks if you use large texts.