|
| 29 May 2017 03:38 AM |
Hi so I'm working on a tycoon and I'm using a dropper that puts meshes on the conveyor belt and my meshes are quite small, and I was wondering how I could do that in my script.
while true do wait(1.5) local part = Instance.new("Part",workspace.PartStorage) local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = 5 part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0) part.FormFactor = "Custom" part.Size=Vector3.new(1, 1, 1) if meshDrop == true then local m = Instance.new("SpecialMesh",part) m.MeshId = meshID m.TextureId = textureID end part.TopSurface = "Smooth" part.BottomSurface = "Smooth" game.Debris:AddItem(part,20) end
That is my while loop part of my dropper, and I need help on creating a command that could scale the size of my mesh to be bigger in size, not the size of the block.
Thank you!
Send me trades brother ;) |
|
|
| Report Abuse |
|
|
|
| 29 May 2017 03:43 AM |
| m.Scale = Vector3.new(xsize, ysize, zsize) |
|
|
| Report Abuse |
|
|
|
| 29 May 2017 04:27 AM |
Thank you!
Send me trades brother ;) |
|
|
| Report Abuse |
|
|
|
| 29 May 2017 04:45 AM |
One more question but how would I change the color of that given mesh?
Send me trades brother ;) |
|
|
| Report Abuse |
|
|
Kyzax
|
  |
| Joined: 27 Dec 2016 |
| Total Posts: 52 |
|
|
| 29 May 2017 04:48 AM |
m.BrickColor = BrickColor.new("Really red") or any other color you can think of, make sure the color name you choose is as descripted in the Roblox color selector |
|
|
| Report Abuse |
|
|
|
| 29 May 2017 04:48 AM |
Thank you!
Send me trades brother ;) |
|
|
| Report Abuse |
|
|