I have a script with 2 errors.
01 | Workspace.Script.Name = "Load" |
02 |
03 |
04 | function Spawn() |
05 | a = Instance.new( "Part" ,Workspace) |
06 | a.Name = "Rain" |
07 | a.CanCollide = true |
08 | a.BrickColor = BrickColor.new( "Cyan" ) |
09 | b = Instance.new( "FileMesh" ) |
10 | b.Parent = Workspace.Rain |
11 | b.MeshId = 2697549 |
12 | b.TextureId = 2697544 |
13 | end |
14 |
15 |
16 |
17 | while true do |
18 | wait( 1 ) |
19 | Spawn() |
20 | end |
1.The file mesh wont load and it does not recognize the other Rain. 2. The File mesh only spawns in 1 part. Could you help?
Currently you are doing
b.Parent = Workspace.Rain
This grabs the first instance in workspace called rain which is never guarenteed to be the last object you created. Instead you should do.
b.Parent = a
And for the Id's you need to do.
1 | b.MeshId = "rbxassetid://2697549" |
2 | b.TextureId = "rbxassetid://2697544" |
okay first what i see, its not b= Instance.new("FileMesh") its b= instance.new("SpecialMesh") and what is rain?