this script is in the button which makes the meshpart appear:
script.Parent.MouseClick:Connect(function() local mpart = Instance.new("MeshPart",game.Workspace) mpart.Position = Vector3.new(236.04, 81.46, 36.46) mpart.MeshId = "rbxassetid://1107996700" mpart.TextureID = "rbxassetid://1107996710" mpart.Size = Vector3.new(4, 5, 5) end)
when the meshpart appears it doesnt have the texture or mesh, its just the blank part and i need it to have the texture and meshid. thanks
Do this instead
script.Parent.MouseClick:Connect(function() local mpart = Instance.new("SpecialMesh",game.Workspace) mpart.Position = Vector3.new(236.04, 81.46, 36.46) mpart.MeshType == Enum.MeshType.FileMesh mpart.MeshId = "rbxassetid://1107996700" mpart.TextureID = "rbxassetid://1107996710" mpart.Scale = Vector3.new(4, 5, 5) -- changed size to scale because meshes don't have sizes end)