"Unable to assign property MeshId. Script write access is restricted." Sorry if this is the wrong category

I am trying to make a shockwave with a ring mesh by using a local instance.new “meshpart”

Unfortunately, this error keeps popping up

I tried to use the purple globe mesh thing to copy and paste the ID into my script, but it still doesn’t work

The script (most of it)
local shockwave = Instance.new(“MeshPart”)
shockwave.MeshId = “http://www.roblox.com/asset/?id=3270017
shockwave.Material = Enum.Material.Neon
shockwave.Size = Vector3.new(0.25,4,4)
shockwave.Transparency = 0.25
shockwave.Parent = game.Workspace
shockwave.Name = “shockwave1”
shockwave.Anchored = true
shockwave.CanCollide = false

Unfortunately you can’t edit a MeshPart’s MeshId with a script, you should just create one in studio and clone that when you require it instead.

3 Likes