Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

2 Problems ?

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

✓ Accepted answer

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"

1 comment

0

Thanks you are truly the best!

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

3 comments

0

rain was what the part's name was called thxs

0

so the WHOLE problem revolves around that i bet

0

yeh i guess

This discussion is preserved as it was. New answers, comments, and votes are closed.