1ty1
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 499 |
|
|
| 28 Mar 2009 10:56 AM |
| i need a maker that makes any bricks that i can change in the script not in game and it needs to have a onof swich its almst like a tycoon thing but it wont get use for one |
|
|
| Report Abuse |
|
|
1ty1
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 499 |
|
| |
|
1ty1
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 499 |
|
| |
|
|
| 28 Mar 2009 11:18 AM |
You cant change the script in game. I'm assuming that the only things you want to change within the script is rate of creation, so I will give you a script that does that. Here is the correct ancestry of the model.
Model (Named "On/Off Switch") --Humanoid (Named "Humanoid") --Part (Named "Head"; This is the on/off button) ----Script (Code that is below goes in here) ----IntValue (Name = "Interval"; Value = 5) --Part (Name = "Toaster"; CanCollide=false; This is where the bricks will spawn from)
Make sure the brick named "Toaster" is sized at least to a 2x2.4x2 brick
function onTouched(hit) if hit.Parent~=nil then if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then if script.Parent.BrickColor==BrickColor.new("Bright green") then script.Parent.BrickColor=BrickColor.new("Bright red") else script.Parent.BrickColor=BrickColor.new("Bright green") end end end end script.Parent.Touched:connect(onTouched)
while true do if script.Parent.BrickColor==BrickColor.new("Bright green") then a=Instance.new("Part") a.Name="TycoonBrick" a.Size=Vector3.new(2,2.4,2) a.Position=script.Parent.Parent.Toaster.Position a.BrickColor=BrickColor.new("Black metallic") a.Parent=workspace end wait(script.Parent.Interval.Value) end
Tell me if anything doesn't work. |
|
|
| Report Abuse |
|
|
1ty1
|
  |
| Joined: 16 Jun 2008 |
| Total Posts: 499 |
|
|
| 28 Mar 2009 11:27 AM |
| no this is not it i need to change the brick and speed it needs to make and not a on toch it needs spesivic on off just like in a tycoon has i i want the brick maker like a tycoon maker but it dosnt need the tycoon parts i just want the maker |
|
|
| Report Abuse |
|
|