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?

3 comments
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.
You can make a meshpart, but can't set the meshid. Typo on my end
oh ok