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: regen script

Previous Thread :: Next Thread 
Vyse1107 is not online. Vyse1107
Joined: 07 Jan 2008
Total Posts: 188
11 Jan 2008 10:39 PM
I need a script that will regenerate an object on a timed basis. if you dont know what this is, go to dr01d3k4's bread factory for a great example. If you have the script please Pm me the script. Thank you
Report Abuse
garfield is not online. garfield
Joined: 31 Jul 2007
Total Posts: 11
11 Jan 2008 11:28 PM
here you go: (follow the instructions in green oh and select work place so it is highlighted ond click insert near File then click Object and type in Script then ok)

COPY AND PASTE IN SCRIPT:


model = game.Workspace.MyModelName --Replace the 'MyModelName' with the name of your model.
messageText = "Regenerating MyModelName..." --And replace it here!
message = Instance.new("Message")--Make a Message
message.Text = messageText
backup = model:clone()--Got to Make A Back-Up.

while true do --This Makes It Continuous
wait(300) --How long till regeneration.
message.Parent = game.Workspace --The Message Should Show To Everyone
model:remove()

wait(4) -- display regen message for 4 seconds

model = backup:clone() --Clone the Back-up To Make Another One
model.Parent = game.Workspace --You Got To See It Right?
model:makeJoints() --Make Sure It Doesn't Fall Apart.
message.Parent = nil --clears message
end
Report Abuse
Vyse1107 is not online. Vyse1107
Joined: 07 Jan 2008
Total Posts: 188
11 Jan 2008 11:45 PM
im really new to scripting so i dont understand any of this. can you explain this in greater detail? sorry for any problems i caused you.
Report Abuse
garfield is not online. garfield
Joined: 31 Jul 2007
Total Posts: 11
11 Jan 2008 11:47 PM
Greater detail?
Report Abuse
Vyse1107 is not online. Vyse1107
Joined: 07 Jan 2008
Total Posts: 188
11 Jan 2008 11:58 PM
explain what everything is and what it does in great detail. please dont sum it up. i all the details. again sorry for any problems i've caused you.
Report Abuse
luigimario135 is not online. luigimario135
Joined: 25 Sep 2007
Total Posts: 3396
12 Jan 2008 12:56 AM
dude its easy! just get used to using the scripts and youll be fine
Report Abuse
garfield is not online. garfield
Joined: 31 Jul 2007
Total Posts: 11
12 Jan 2008 12:58 AM
That doesn't help.
Report Abuse
luigimario135 is not online. luigimario135
Joined: 25 Sep 2007
Total Posts: 3396
12 Jan 2008 12:59 AM
well then u explain it?
Report Abuse
garfield is not online. garfield
Joined: 31 Jul 2007
Total Posts: 11
12 Jan 2008 12:59 AM
i will
Report Abuse
luigimario135 is not online. luigimario135
Joined: 25 Sep 2007
Total Posts: 3396
12 Jan 2008 01:00 AM
ok go ahead. show him how to do it...YOUR way
Report Abuse
garfield is not online. garfield
Joined: 31 Jul 2007
Total Posts: 11
12 Jan 2008 03:02 AM
OK V. IN THE FIRST SECTANCE: model = game.Workspace.MyModelName YOU CHANGE MyModelName TO WHATEVER YOU WANT TO REGEN FOR EXANPLE: YOUR MODEL IS CALLED CAR DELET MyModelName AND CHANGE IT TO YOUR MODEL'S NAME. SAME THNG FOR THE SECOND SENTENCE IN THE MyModelName SPACE, CHANGE IT TO YOUR MODEL'S NAME. THEN PUBLISH THAT MODEL TO ROBLOX BY RIGHT CLICKING ON IT AND SELECTING Publish To Roblox... AND SAVE IT TO YOUR COMPUTER TO... RIGHT CLICK AND SELECT SAVE TO FILE... (I THINK) THEN GO TO Backup IN THE SCRIPT AND IN BETWEEN () COPY AND PASTE THE BACKUP THAT YOU SAVED. THEN IN THE NEXT SECTENCE THAT SAYS: while true do
wait(300) --How long till regeneration in seconds.
IN THE PLACE THAT SHOWS THE NUMBERS CHANGE THEM TOO ANY NUMBER YOU LIKE (IT IS IN SECONDS EX. 60 SEC. = 1 MIN)
NOW GO DOWN TO THE SENTENCE THAT SHOWS THIS:
model = backup:clone() --Clone the Back-up To Make Another One
DO THE SAME THING LIKE THE LAST BACKUP COPY AND PASTE
NEXT SENTENCE... GO TO THE ONE THAT SAYS:
model:makeJoints() --Make Sure It Doesn't Fall Apart.
IN THE () PUT THE NUM. 5000 IF YOU HAVE MORE BRICKS IN YOUR PLACE THEN PUT A HIGHIER NUM.
AND THAT'SIT!!
IF IT DOESN'T WORK THEN I'M SORRY THAT I COULDN'T HELP... ASK PEOPLE HOW HOW REGEN SCRIPTS IN THEIR PLACE THEY MIGHT TELL YOU GOOD LUCK!
Report Abuse
Agent5 is not online. Agent5
Joined: 25 Sep 2007
Total Posts: 40
12 Jan 2008 03:38 AM
askenfektrislerytjd
Report Abuse
jeffcena is not online. jeffcena
Joined: 26 Aug 2007
Total Posts: 3743
12 Jan 2008 03:58 AM
1. whats your model called
2. what time do you want between regens
3. what do u want the message to be

-- I hAs A bUcKeTz! --
.: jeffcena :.
<(*_*)>
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