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
 

Re: Help please!

Previous Thread :: Next Thread 
Tycoo_ns is not online. Tycoo_ns
Joined: 06 Jun 2016
Total Posts: 2375
14 Jun 2016 10:33 PM
Hi, I'm making a tycoon and in the beginning, there is a click dropper, I want the part that comes out of the dropper when you click to be a mesh. I have droppers that are regular and go by themselves, with meshes. But I don't know how to make one that will drop a mesh onto the conveyor when you click the button. Does anyone have a script that can do that? Please help! Thank you! :)


Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
14 Jun 2016 10:46 PM
Don't expect us to make the game for you, have you end tried researching this??
Report Abuse
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
14 Jun 2016 11:27 PM
Yeah ikr.

I'm not trying to destroy your hopes and dreams, but we already have enough Tycoon games on roblox. Just search up, "Free model Tycoon", if you will.
Report Abuse
Tycoo_ns is not online. Tycoo_ns
Joined: 06 Jun 2016
Total Posts: 2375
15 Jun 2016 08:34 AM
All I'm asking for is any info on how to make a mesh click dropper, not an entire game. Also I did research and couldn't find anything.


Report Abuse
Tycoo_ns is not online. Tycoo_ns
Joined: 06 Jun 2016
Total Posts: 2375
15 Jun 2016 10:25 AM
Bump bump bumpity bump bump??


Report Abuse
Tycoo_ns is not online. Tycoo_ns
Joined: 06 Jun 2016
Total Posts: 2375
15 Jun 2016 11:50 AM
Anyone?


Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 12:32 PM
part = Instance.new("Part",workspace)
mesh = Instance.new("Mesh",part)
mesh.Texture = -- blah


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 12:33 PM
local object

function Clicked()
game.Debris:AddItem(object, 30)
end

script.Parent.ClickDetector.MouseClick:connect(Clicked)

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 12:43 PM
^ hooahh?


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 12:44 PM
what?
you set a part equal to object then call AddItem

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 12:45 PM
To make a part dropper??


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 12:45 PM
"Hi, I'm making a tycoon and in the beginning, there is a click dropper, I want the part that comes out of the dropper when you click to be a mesh."

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 12:47 PM
Yeah, he wants the part that falls from the dropper to contain a mesh.

What does Debris have to do with that?


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 12:48 PM
...do you even know what Debris:AddItem() does? it adds the object (first arg) for x amount of seconds (second arg)

he would set the part that he wants to have dropped to object

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 12:49 PM
Stop trolling please and read?

http://wiki.roblox.com/index.php?title=API:Class/Debris/AddItem


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 12:53 PM
lol what
"Registers a given object to the Debris service for removal after the specified delay."
is that not what I'm explaining/demonstrating

go to studio and run this inside command bar:

local part = Instance.new("Part", game.Workspace)
game.Debris:AddItem(part, 5)

how about you tell me what you think it does

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 01:08 PM
In your original post you said "local object" and did not specify it as a new Instance.

and I'm pretty sure both you and I know that OP isn't gonna bridge that gap


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 01:15 PM
that's completely different from your argument, and it's obvious that I don't know where/what the object is/is called, so I just left it as local object

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 01:17 PM
Adding an item to the debris just removes it - everyone knows that

However, without knowing that "object" was a new Instance (<-- key words), I figured you were just removing something pre-existing instead of creating something TO remove.


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 01:20 PM
yes...and it is necessary to remove parts after a certain amount of time in a tycoon to prevent continuous buildup of fallen parts

and the second part: if you know how Debris:AddItem() works, it's implied that it IS going to be a new instance

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 01:21 PM
this is trivial! and has nothing to do with adding meshes to the parts.

Of course adding something to the debris service will kill it, whether new or old. It doesn't have to be a new instance, it can be used to remove ANYTHING after a duration (which is the circumstance in which I have most commonly seen it used)


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 01:25 PM
"has nothing to do with adding meshes to the parts"

how about putting the part WITH the mesh in ServerStorage, then use AddItem on a clone of the part? and even if you didn't do it that way, you could manually set properties inside the script (although that would be stupid since the first way is easier)

second part: you're not teaching me anything new, I already know this

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 01:28 PM
Yes, that's a perfectly valid solution, but local object doesn't communicate that.

local object = game.ServerStorage:FindFirstChild("YourPremadeObject") does! :)

>it's implied that it IS going to be a new instance

This didn't say to me that you were 100% informed, so I was clarifying that it does not have to be a new Instance... o_O


Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Jun 2016 01:29 PM
*("YourPremadeObject"):clone()


Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
15 Jun 2016 01:31 PM
having "local object" at the top of the script was obviously a template for OP to set it equal to a new instance/cloning an existing one

"local object = game.ServerStorage:FindFirstChild("YourPremadeObject")"
that would not be standalone

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
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