Making a regen script? [closed]
How could I create a regen script? I am using the one here:
04 | if (object ~ = nil ) and (object ~ = game.Workspace) then |
06 | messageText = "regenerating " .. model.Name .. "" |
08 | message = Instance.new( "Message" ) |
09 | message.Text = messageText |
12 | wait(math.random( 0 , waitTime)) |
16 | message.Parent = game.Workspace |
22 | model.Parent = game.Workspace |
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.