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: Is this correct?

Previous Thread :: Next Thread 
coolbro935 is not online. coolbro935
Joined: 23 Mar 2013
Total Posts: 233
20 Jun 2013 04:49 PM
object = script.Parent
if (object ~= nil) and (object ~= game.Workspace) then
model = object
local gui = game.StarterGui.RegenGui
gui.Frame.Visible = true

backup = model:clone() -- Make the backup
waitTime = 10 --Time to wait between regenerations (Change if you want!)
wait(math.random(0, waitTime))
while true do
wait(waitTime) -- Regen wait time

model:remove()

wait(2.5) -- Display regen message for this amount of time

model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
gui.Frame.Visible = false
end
end

It was supposed to regen with a Gui and remove after 2.5 seconds. Regen works, but Gui doesn't pop up. (RegenGui) is in game.StarterGui
================================================================
object = script.Parent
if (object ~= nil) and (object ~= game.Workspace) then
model = object
local gui = script.RegenGui
gui:clone().Parent = game.StarterGui

backup = model:clone() -- Make the backup
waitTime = 10 --Time to wait between regenerations (Change if you want!)
wait(math.random(0, waitTime))
while true do
wait(waitTime) -- Regen wait time

model:remove()

wait(2.5) -- Display regen message for this amount of time

model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
gui:remove()
end
end

Everything works, but Gui doesn't remove.
Report Abuse
coolbro935 is not online. coolbro935
Joined: 23 Mar 2013
Total Posts: 233
20 Jun 2013 04:50 PM
2nd script, the gui is inside there
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Jun 2013 04:51 PM
free model @_@
Report Abuse
coolbro935 is not online. coolbro935
Joined: 23 Mar 2013
Total Posts: 233
20 Jun 2013 04:52 PM
i know, but I edited it
Report Abuse
coolbro935 is not online. coolbro935
Joined: 23 Mar 2013
Total Posts: 233
20 Jun 2013 04:54 PM
Help please?
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Jun 2013 04:54 PM
whats it sposed' to do?
Report Abuse
coolbro935 is not online. coolbro935
Joined: 23 Mar 2013
Total Posts: 233
20 Jun 2013 04:56 PM
Read it
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Jun 2013 04:58 PM
too lazy :P
Report Abuse
coolbro935 is not online. coolbro935
Joined: 23 Mar 2013
Total Posts: 233
20 Jun 2013 04:58 PM
Bump
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
20 Jun 2013 05:00 PM
is it a regen script?
Report Abuse
coolbro935 is not online. coolbro935
Joined: 23 Mar 2013
Total Posts: 233
20 Jun 2013 10:13 PM
yes
Report Abuse
Croze is not online. Croze
Joined: 21 Mar 2010
Total Posts: 449
20 Jun 2013 10:55 PM
Can't help on freemodels, edited or not
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
21 Jun 2013 02:36 PM
have it remove the model and take the model back into workspace, nothing complex, thats about 10 lines of code.
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