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 creator script

Previous Thread :: Next Thread 
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:05 PM
hi i really ned help im pretty nooby at scripting and i guess i dont really know anything apart from what i copy from youtube,
i cant find anything on how to make a brick machine so i can make bricks go along my conveyer kinda like a tycoon but im not making a tycoon i just need a brick creator code that i can make disco bricks come out or it (disco bricks are dnace floor script)
i do have the dance floor script so i dont need that but can you please make/ give me a script for it?
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
29 Oct 2011 02:07 PM
P = Instance.new("Part")

I hope you can figure out the rest.
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:08 PM
dude i have no idea what im doing seriously i tried to doa script and the whole game screwwed up
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
29 Oct 2011 02:09 PM
dun talk liek dis
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:13 PM
sorry im just trying to talk fast as i really would like my problem to be solved,
im trying to make a place where you can go and chill basically it has colour changing balls and going to have a dance floor,
i would really like it to have a machine that sends bricks around the edge that change colour before they either fall or disapear,
thanks for reading and replying, sorry for talking like a idiot
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
29 Oct 2011 02:14 PM
Put this into a script
while true do
p = Instance.new("Part",Workspace)
end
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
29 Oct 2011 02:17 PM
Biker, are u sure you dont want to add a wait?????????


Heres what I suggest:

while true do
wait(1)
p = Instance.new("Part",Workspace)
wait(3)
p:Remove()
end
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:18 PM
ok can i now ask where i put my colour changing code?

while true do
script.Parent.Color = Color3.new( math.random(), math.random(), math.random())
wait(0.1)
end
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
29 Oct 2011 02:20 PM
No I don`t want to add a wait because it will crash the game.

while true do
script.Parent.BricColor = BrickColor.random()
end
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:20 PM
would this work?
while true do
wait(5)
while true do
script.Parent.Color = Color3.new( math.random(), math.random(), math.random())
wait(0.1)
end
p = Instance.new("Part",Workspace)
wait(10)
p:Remove()
end
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:22 PM
its not working :
there is no brick being created?
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
29 Oct 2011 02:24 PM
What code is not working?
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:25 PM
ill check:
all i know is its not producing a brick i think i used the guy below you ill try yours now
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:28 PM
ok ive tried all the codes i have been givven,
i have noticed they all have the same problem:
it does not produce a brick!!!
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:32 PM
ok either people have givven up on me or also dont know what im talking about.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
29 Oct 2011 02:32 PM
while wait(1) do
p = Instance.new("Part",Workspace)
p.BrickColor = BrickColor.random()
end
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
29 Oct 2011 02:36 PM
You also have to set the position

p.CFrame = CFrame.new(0, 5, 0)
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:37 PM
how do i find coordinates?
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
29 Oct 2011 02:51 PM
ok so i found my problem:
Workspace.Part.Script:2: attempt to index global 'p' (a nil value)
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
29 Oct 2011 03:06 PM
Post your whole script.
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
30 Oct 2011 06:35 AM
while wait(1) do
p.CFrame = CFrame.new(-26, 7, -17)
p = Instance.new("Part",Workspace)
p.BrickColor = BrickColor.random()
end


while wait(1) do
p.CFrame = CFrame.new(-26, 7, -17)
p = Instance.new("Part",Workspace)
p.BrickColor = BrickColor.random()
end
Report Abuse
xbmdavross is not online. xbmdavross
Joined: 22 Jul 2011
Total Posts: 112
30 Oct 2011 06:40 AM
Workspace.Part.Script:2: attempt to index global 'p' (a nil value)
Report Abuse
GameandWatchgreen is not online. GameandWatchgreen
Joined: 25 Sep 2008
Total Posts: 305
30 Oct 2011 08:06 AM
Look up Lua Errors in the ROBLOX wiki. That always helps me.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
30 Oct 2011 08:11 AM
how are you all failing at trying to do this...


while wait(1) do
local part = Instance.new("Part", workspace)
part.Position = Vector3.new(0,0,0)
part.Anchored = true
part.BrickColor = BrickColor.random()
part.Size = Vector3.new(5,5,5)
end
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
30 Oct 2011 08:11 AM
how are you all failing at trying to do this...


while wait(1) do
local part = Instance.new("Part", workspace)
part.Position = Vector3.new(0,0,0)
part.Anchored = true
part.BrickColor = BrickColor.random()
part.Size = Vector3.new(5,5,5)
end
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