Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Making a regen script? [closed]

Asked by 11 years ago

How could I create a regen script? I am using the one here:

01---Place this INSIDE the model. Don't replace the model name or anything.
02------------------------------------------------------------------------------------------
03object = script.Parent
04if (object ~= nil) and (object ~= game.Workspace) then
05model = object
06messageText = "regenerating " .. model.Name .. ""
07 
08message = Instance.new("Message")
09message.Text = messageText
10backup = model:clone() -- Make the backup
11waitTime = 255 --Time to wait between regenerations
12wait(math.random(0, waitTime))
13while true do
14wait(waitTime) -- Regen wait time
15 
View all 27 lines...

I don't want a message to be displayed and so it regenerates without a message on your screen. I tried deleting and modifying a few text lines to no avail.

Help would be greatly appreciated!

Also, please be very specific as I am a huge noob to Lua.

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?