Badawan
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 18646 |
|
|
| 06 Jan 2017 09:33 AM |
| That changes the mesh when it goes through one upgrade and then the next it gives it a texture? I have a real good tycoon idea but need those two scripts. |
|
|
| Report Abuse |
|
|
Tunicus
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 3165 |
|
|
| 06 Jan 2017 09:57 AM |
local mesh = script.Mesh -- for mesh
script.Parent.Touched:connect(function(basepart) if (not basepart:FindFirstChildOfClass("SpecialMesh")) then mesh:clone().Parent = basepart end
-- for texture
local texture = script.Texture
script.Parent.Touched:connect(function(basepart) if (not basepart:FindFirstChildOfClass("Texture")) then texture:clone().Parent = basepart end
Put the top script into an upgrader that you want to apply meshes. Put the mesh inside the script and name it "Mesh"
Put the bottom script into an upgrader that you want to apply textures. Put the texture inside the script and name it "Texture"
|
|
|
| Report Abuse |
|
|
Badawan
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 18646 |
|
|
| 06 Jan 2017 10:21 AM |
| That works with zednov kit? And mind explaining a little bit more? Like where to put it. |
|
|
| Report Abuse |
|
|