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 » Scripting Helpers
Home Search
 

Re: brick maker with on/off swiches

Previous Thread :: Next Thread 
1ty1 is not online. 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 is not online. 1ty1
Joined: 16 Jun 2008
Total Posts: 499
28 Mar 2009 11:06 AM
bump
Report Abuse
1ty1 is not online. 1ty1
Joined: 16 Jun 2008
Total Posts: 499
28 Mar 2009 11:16 AM
no one wants to help....
Report Abuse
blobbyblob is not online. blobbyblob
Joined: 29 Oct 2008
Total Posts: 12165
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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