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

How would i make this change meshes?

Asked by
22To 70
9 years ago

Ok I made a machine that when the part touch it it will change the part into the mesh id but i want the machine to change to another mesh when a different part touch it.I Hope this isnt confusing

B = script.Mesh 

function onTouched(part) 
BC = B:clone() 
BC.Parent = part 
script.Parent.CanCollide = false
then
wait(0.2)
script.Mesh.ChangeMeshId.http://www.roblox.com/asset/?id=162384581 
script.Mesh.ChangeTextureId.http://www.roblox.com/asset/?id=162384608
BC.Parent = part
script.Parent.CanCollide = false
then
wait(0.2)
script.Mesh.ChangeMeshId.http://www.roblox.com/asset/?id=------NEW ID
script.Mesh.ChangeTextureId.http://www.roblox.com/asset/?id=-----NEW ID
----THEN IT WILL DO THIS OVER and OVER
end
script.Parent.Touched:connect(onTouched) 

Answer this question