#how do i make an script to change the mesh id of an part

1 messages · Page 1 of 1 (latest)

sharp fractal
#

You cannot access that properity because roblox doesn't allow it (likely due to internal limitations), if you want to insert a part with that mesh id you should clone a part that has that mesh applied onto it.

fair bronze
#

ok

sharp fractal
#

I believe you can also insert meshes using insert service

local InsertService = game:GetService("InsertService")

local Id = 1

local Success, Model = pcall(InsertService.LoadAsset, InsertService, Id)

if Success then
    local Mesh = Model:GetChildren()[1]
    
  Mesh.Parent = workspace

  Model:Destroy()
else
  warn("Could not load mesh.")
end
fair bronze
#

i wanted to make an part look damaged when it has less that half health

#

i will try to clone it tho

fair bronze
#

thanks

red wave
#

you could also use editable meshes for this

#

i don't think you can change their asset ids but

#

you can change vertice positions

#

for a dynamic damage system

#

i had an old gore system that worked like this