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: I keep messing up a union dropping from a dropper.

Previous Thread :: Next Thread 
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 08:40 PM
So I'm trying to make a tycoon that drops a union, which is painful because I usually make it make parts, which is a lot easier.
debounce = false
script.Parent.Button.ClickDetector.MouseClick:connect(function()
if debounce == false then
debounce = true
local Rock = Instance.new("UnionOperation",workspace)
UnionOperation.BrickColor=script.Parent.Parent.Parent.DropColor.Value
cash.Value = 1
Rock.CFrame = script.Parent.Drop.CFrame
Rock.Size=Vector3.new(0.6, 1.4, 1.4)
game.Debris:AddItem(Rock,20)
wait(0.2) -- Time to wait in between clicks
debounce = false
end
end)

Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
20 Oct 2015 08:52 PM
clone a union you want and position it at the droper
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
20 Oct 2015 08:52 PM
what's messing up or erroring?
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 08:54 PM
So here is what happens, it makes a new empty union, not the actually rock.
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 09:10 PM
Bump
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
20 Oct 2015 09:15 PM
You named local Rock then you did Instance.new for a Union Operation and then called it UnionOperation instead of Rock
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 09:18 PM
When I named it before as Rock, it said
19:17:50.523 - Unable to create an Instance of type "Rock"
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
20 Oct 2015 09:23 PM
debounce = false
script.Parent.Button.ClickDetector.MouseClick:connect(function()
if debounce == false then
debounce = true
local Rock = Instance.new("UnionOperation",workspace)
if part:IsA("UnionOperation") then
BrickColor=script.Parent.Parent.Parent.DropColor.Value
cash.Value = 1
CFrame = script.Parent.Drop.CFrame
Size=Vector3.new(0.6, 1.4, 1.4)
game.Debris:AddItem(Rock,20)
wait(0.2) -- Time to wait in between clicks
debounce = false
end
end)

try that idk
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 09:29 PM
No, it does not work, I've edited your suggested script around, yet that all the attempts still didn't work, here are my edits.
debounce = false
script.Parent.Button.ClickDetector.MouseClick:connect(function()
if debounce == false then
debounce = true
local Rock = Instance.new("UnionOperation",workspace)
if UnionOperation:IsA("Rock") then
BrickColor=script.Parent.Parent.Parent.DropColor.Value
cash.Value = 1
Rock.CFrame = script.Parent.Drop.CFrame
Rock.Size=Vector3.new(0.6, 1.4, 1.4)
game.Debris:AddItem(Rock,20)
wait(0.2) -- Time to wait in between clicks
debounce = false
end
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
20 Oct 2015 09:31 PM
"if UnionOperation:IsA("Rock") then"

>.<
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
20 Oct 2015 09:32 PM
if Rock:IsA("UnionOperation") then
Rock.BrickColor=script.Parent.Parent.Parent.DropColor.Value
cash.Value = 1
Rock.CFrame = script.Parent.Drop.CFrame
Rock.Size=Vector3.new(0.6, 1.4, 1.4)
game.Debris:AddItem(Rock,20)
wait(0.2) -- Time to wait in between clicks
debounce = false
end
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 09:40 PM
Alright, your edit still didn't work, I added more edits, yet I still get the same outcome, it just spawns more unions.

debounce = false
script.Parent.Button.ClickDetector.MouseClick:connect(function()
if debounce == false then
debounce = true
script.Parent.Button.BrickColor=BrickColor.new("Bright red")
local Bagel = Instance.new("UnionOperation",workspace)
local cash = Instance.new("IntValue",part)
if Bagel:IsA("UnionOperation") then
cash.Name = "Cash"
Bagel.BrickColor=script.Parent.Parent.Parent.DropColor.Value
cash.Value = 1
Bagel.CFrame = script.Parent.Drop.CFrame
Bagel.Size=Vector3.new(1,1,1)
game.Debris:AddItem(Bagel,20)
wait(0.2) -- Time to wait in between clicks
debounce = false
script.Parent.Button.BrickColor=BrickColor.new("Bright green")
end
end
end)

Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 09:41 PM
I changed the name to bagel
I changed the rock.
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 09:48 PM
b2
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 10:31 PM
b3
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 10:38 PM
b5
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
20 Oct 2015 10:39 PM
b6
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
20 Oct 2015 10:41 PM
lol
Report Abuse
Genuinebagel is not online. Genuinebagel
Joined: 18 Jun 2013
Total Posts: 490
21 Oct 2015 07:11 PM
bump
Report Abuse
HRnSN is not online. HRnSN
Joined: 22 Jun 2009
Total Posts: 1276
21 Oct 2015 07:38 PM
I don't think you can instance a UnionOperation, you have to make it a Part.
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