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

Error w/ a mesh instance: 'Unable to assign property MeshId. Script write access is restricted'?

Asked by 5 years ago

Code I have so far

while true do
pineapple = Instance.new("MeshPart")
pineapple.MeshId = ("rbxassetid://677816839")
pineapple.TextureID = ("rbxassetid://677816891")
pineapple.Position = script.Parent.Position
pineapple.Size = ("0.789, 1.504, 0.767")
pineapple.CanCollide = false
wait(0.5)
end

Why couldn't it assign the MeshId?

And why does it say Script write access is restricted?

0
You cannot make a new meshpart. You can't due to a secutity issue or something along the lines of that. You can, however, make a new part and put a specialmesh in it and set the meshid and textureid to that. Another solution is put the meshpart in serverstorage or replicatedstorage and clone it. the8bitdude11 358 — 5y
0
You can make a meshpart, but can't set the meshid. Typo on my end the8bitdude11 358 — 5y
0
oh ok sean_thecoolman 189 — 5y

Answer this question