of     1   

Laxxe
#65453Monday, July 16, 2007 7:22 PM GMT

Yeah, all the model locations are in the right place, but is it scripted correctly? This is my first time at any MAJOR scripting, so I doubt it, but could someone read through it and see if it will, and if not what needs correcting. Thank you! === model = game.Workspace.FactoryInABox1.toaster1 local toastercopy = game.Workspace.FactoryInABox1.toaster1:clone() function Regentoaster() game.Workspace.FactoryInABox1.toaster1:remove() local new_stuff = toastercopy:clone() new_stuff.Parent = game.Workspace.FactoryInABox1 new_stuff:makeJoints() function onChatted(msg, recipient, speaker) -- convert to all lower case local source = string.lower(speaker.Name) msg = string.lower(msg) if (msg == "start making cake") then if isenabled~=0 then local toast=game.Workspace.FactoryInABox1.toast:clone() isenabled=0 toast.Parent=game.Workspace toast.Transparency=0 toast.Locked=false toast.Anchored=false toast.CanCollide=true toast.RotVelocity=Vector3.new(0,0,0) local toastrot=CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) toast.CFrame = script.Parent.toaster.CFrame * CFrame.new(Vector3.new(0,0,0)) * toastrot wait(1) isenabled=1 end end if (msg == "open door") then wait(0.1) Regentoaster() wait(0.1) end end end function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end game.Players.ChildAdded:connect(onPlayerEntered) ===
lavamaster
#65458Monday, July 16, 2007 7:27 PM GMT

not sure if it will work or not cuz i no wat this script does but its kind of diffrent from mine =/
Anaminus
Top 100 Poster
#65461Monday, July 16, 2007 7:30 PM GMT

I'd just like to point out that the script for the on/off button is very messy, but I'll release a better version later. But that's not important reguarding this. --------------------------------------------------------------------------------------- model = game.Workspace.FactoryInABox1.toaster1 local toastercopy = game.Workspace.FactoryInABox1.toaster1:clone() function Regentoaster() game.Workspace.FactoryInABox1.toaster1:remove() local new_stuff = toastercopy:clone() new_stuff.Parent = game.Workspace.FactoryInABox1 new_stuff:makeJoints() end function onChatted(msg, recipient, speaker) -- convert to all lower case local source = string.lower(speaker.Name) msg = string.lower(msg) if (msg == "start making cake") then while true do local toast=game.Workspace.FactoryInABox1.toast:clone() toast.Parent=game.Workspace toast.Transparency=0 toast.Locked=false toast.Anchored=false toast.CanCollide=true toast.RotVelocity=Vector3.new(0,0,0) local toastrot=CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) toast.CFrame = script.Parent.toaster.CFrame * CFrame.new(Vector3.new(0,0,0)) * toastrot wait(1) end end if (msg == "open door") then wait(0) Regentoaster() end end function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end game.Players.ChildAdded:connect(onPlayerEntered) ------------------------------------------------------------------------------- ?-Anaminus-?
Laxxe
#65464Monday, July 16, 2007 7:33 PM GMT

Yeah, I kind of pimped the entire factory thing. It's now a lot more efficient, mainly because I have 4 combined together!
Laxxe
#65469Monday, July 16, 2007 7:37 PM GMT

Right, tried it and it doesn't work.
DieHardBob
Top 100 Poster
#65514Monday, July 16, 2007 8:34 PM GMT

when i look at a script ,two things come t omind, sleep and the sound ..duaaaaa......
DeadRares
#109006471Friday, August 09, 2013 2:50 AM GMT

omg its anaminus

    of     1