iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
|
| 13 May 2017 09:42 PM |
| I've been scripting and I need help, I'm trying to make a mine for tycoons and make it clone an item to drop for money. wait(2) local storage = game:GetService("ServerStorage") workspace:WaitForChild("PartStorage") deb = true script.Parent.Clicker.ClickDetector.MouseClick:connect(function(wat) if deb == true then deb = false local part = storage.Fidget:clone() local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = 1 -- How much the drops are worth part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.3,0) part.FormFactor = "Custom" part.Size=Vector3.new(1, 1, 1) -- Size of the ##### ############### = "Smooth" part.BottomSurface = "Smooth" game.Debris:AddItem(part,20) -- How long until the drops expire wait(.15) deb = true end end) or ############################# |
|
|
| Report Abuse |
|
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
| |
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
|
| 13 May 2017 09:48 PM |
| Why so complicated, just clone a block inside the script and inside the block is an intvalue saying the price. And there should be a conveyor lol |
|
|
| Report Abuse |
|
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
|
| 13 May 2017 09:50 PM |
I'm a noob at scripting can you help me out
|
|
|
| Report Abuse |
|
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
| |
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
| |
|
|
| 14 May 2017 08:10 AM |
Seems You're Doing Some "Fidget Tycoon" Thingy, Anyways... @IINemo Just Explained It. Just Make A Script That Clones The Item And Clones An Integer Value Inside It Which Has The Value As The Money It Gives, And When The Brick Touches The Mine, Then The Mine Checks What Is The Value Inside The Item And Adds It To Your Total Money, I Can Make A Script For You If You Don't Know How. |
|
|
| Report Abuse |
|
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
| |
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
| |
|
Goadan
|
  |
| Joined: 14 Apr 2013 |
| Total Posts: 157 |
|
|
| 14 May 2017 11:23 AM |
Can I ask if you don't know how to add a part how did you get that far into that kind of code anyway?
|
|
|
| Report Abuse |
|
|
Goadan
|
  |
| Joined: 14 Apr 2013 |
| Total Posts: 157 |
|
|
| 14 May 2017 11:23 AM |
If you describe it a bit better I might be able to help.
|
|
|
| Report Abuse |
|
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
|
| 14 May 2017 11:35 AM |
| I'm making a fidget spinner tycoon and I have a fidget spinner part containing a mesh and decal. I'm trying to make a mine and dropper drop the fidget spinner part. |
|
|
| Report Abuse |
|
|
Goadan
|
  |
| Joined: 14 Apr 2013 |
| Total Posts: 157 |
|
|
| 14 May 2017 11:45 AM |
Change the part dropper to a mesh.
|
|
|
| Report Abuse |
|
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
| |
|
|
| 14 May 2017 12:21 PM |
I can make the script for you, but I need some information : 1 - How much money is the part supposed to give? 2 - What is the size of the part that gives money? (X,Y,Z) 3 - What is the name of the brick that makes the part? (The Dropper's Dispenser) |
|
|
| Report Abuse |
|
|
iRoklas
|
  |
| Joined: 08 May 2011 |
| Total Posts: 102 |
|
| |
|