It's hard to explain and I don't know what to call it, but this is what I am trying:
1 | function somethinghere:Fade(speed) |
2 | print (somethinghere) |
3 | end |
basically being able to change the somethinghere to any instance in the game.
try doing
1 | local somethinghere |
2 | function somethinghere:Fade(speed) |
3 | somethinghere = game.Workspace.Part.Name |
4 | print (somethinghere) |
5 | end |
if this is what you mean then try it
Well the thing is it's not a specific part, I just want it to find the instance that is getting used for the somethinghere.
I'm not sure what you mean but this might help:
01 | local object |
02 |
03 | local function afunction () |
04 | object = Instance.new( "Part" ) --Change the value to anything you want the object to be. |
05 | object.Name = "TheObjectsName" |
06 | --You might wanna change its properties here (size,color,anchored,colidable,etc.) |
07 | object.Parent = workspace |
08 |
09 | object = Instance.new( "Part" ) --This will make a new instance but the instance made before will not disappear. |
10 | end |