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.
so like this??
function GetRanNumbPlace(RanNumb) local PlaceID = IDFolder["Place"..RanNumb].Value NewPlaceTo.Value = PlaceID end