generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Tycoon Mesh Dropper Help

Previous Thread :: Next Thread 
WannerTilson is not online. WannerTilson
Joined: 13 Dec 2009
Total Posts: 33
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
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
29 May 2017 03:43 AM
m.Scale = Vector3.new(xsize, ysize, zsize)
Report Abuse
WannerTilson is not online. WannerTilson
Joined: 13 Dec 2009
Total Posts: 33
29 May 2017 04:27 AM
Thank you!


Send me trades brother ;)
Report Abuse
WannerTilson is not online. WannerTilson
Joined: 13 Dec 2009
Total Posts: 33
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 is not online. 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
WannerTilson is not online. WannerTilson
Joined: 13 Dec 2009
Total Posts: 33
29 May 2017 04:48 AM
Thank you!


Send me trades brother ;)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image