Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

2 Problems ?

Asked by
foxy83 15
10 years ago

I have a script with 2 errors.

01Workspace.Script.Name = "Load"
02 
03 
04function 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
13end
14 
15 
16 
17while true do
18    wait(1)
19    Spawn()
20end

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?

2 answers

Log in to vote
4
Answered by
magnalite 198
10 years ago

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.

0
Thanks you are truly the best! foxy83 15 — 10y
Ad
Log in to vote
2
Answered by 10 years ago

okay first what i see, its not b= Instance.new("FileMesh") its b= instance.new("SpecialMesh") and what is rain?

0
rain was what the part's name was called thxs foxy83 15 — 10y
0
so the WHOLE problem revolves around that i bet bubbaman73 143 — 10y
0
yeh i guess foxy83 15 — 10y

Answer this question