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
9 years ago

I have a script with 2 errors.

Workspace.Script.Name = "Load"


function Spawn()
    a = Instance.new("Part",Workspace)
    a.Name = "Rain"
    a.CanCollide = true
    a.BrickColor = BrickColor.new("Cyan")
    b = Instance.new("FileMesh")
    b.Parent = Workspace.Rain
    b.MeshId = 2697549
    b.TextureId = 2697544
end



while true do
    wait(1)
    Spawn()
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?

2 answers

Log in to vote
4
Answered by
magnalite 198
9 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.

b.MeshId = "rbxassetid://2697549"
b.TextureId = "rbxassetid://2697544"
0
Thanks you are truly the best! foxy83 15 — 9y
Ad
Log in to vote
2
Answered by 9 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 — 9y
0
so the WHOLE problem revolves around that i bet bubbaman73 143 — 9y
0
yeh i guess foxy83 15 — 9y

Answer this question