|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
| |
|
|
| 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 |
|
|
|
| 29 Oct 2011 02:14 PM |
Put this into a script while true do p = Instance.new("Part",Workspace) end |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 29 Oct 2011 02:22 PM |
its not working : there is no brick being created? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 29 Oct 2011 02:32 PM |
| ok either people have givven up on me or also dont know what im talking about. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2011 02:32 PM |
while wait(1) do p = Instance.new("Part",Workspace) p.BrickColor = BrickColor.random() end |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 29 Oct 2011 02:37 PM |
| how do i find coordinates? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
| |
|
|
| 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 |
|
|
|
| 30 Oct 2011 06:40 AM |
| Workspace.Part.Script:2: attempt to index global 'p' (a nil value) |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 08:06 AM |
| Look up Lua Errors in the ROBLOX wiki. That always helps me. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|