The title may be a bit confusing, but let's take the default Baseplate for example. I'm making a part appear randomly on that Baseplate, so I used a part to take measurements of the ends of it, if that makes any sense. Is there a way to find the measurements via scripting? Comment if you are a bit confused.
Script:
01 | function snow() |
02 | while wait() do |
03 | -- got here try 1 |
04 | a = game.Lighting.Part:clone() |
05 | print ( 'cloned' ) |
06 | for i,v in pairs (game.Workspace:GetChildren()) do |
07 | if v.Name = = "Baseplate" then |
08 | a.Position = Vector 3. new(math.random(- 257 , 257 ), 200 , math.random(- 254 , 254 )) |
09 | end |
10 | end |
11 | game.Workspace [ "Snow Script" ] .Script:clone().Parent = a |
12 | a.Parent = Workspace |
13 | a.Script.Disabled = false |
14 | print ( 'set' ) |
15 | end |
16 | end |
17 |
18 | snow() |
I'm a bit confused, do you mean finding the position under the properties of a part? If so, this might work. Don't downvote me if it doesn't work please.
1 | Part = game.Workspace.Part --You can change this to your parts name. |
2 |
3 | Position = Part.Position --This is where you would find the position of "Part". Using Part.Position should go into the properites of that part and look under Position. |
Basically, I think you need to find the part's position or
1 | Game.Workspace.insertpartnamehere.Position |
So, you need to make the script recognize what the position is. Consult the Wiki for that, I just started scripting ;) Good luck!