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 » Scripters
Home Search
 

Re: a regen that doesnt delete the model?

Previous Thread :: Next Thread 
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 09:49 PM
id like to use a regen that doesnt delete the model, but instead spawns a new one

and if there is already one in the original location, it doesnt spawn a new one

does anyone know of a script like this?
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 09:50 PM
b1
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
16 May 2015 09:50 PM
wiki.roblox.com


I script -~ chimmihc
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 09:52 PM
im not asking for a place where i learn to script, else i wouldnt be posting this
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 09:54 PM
b2
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 09:54 PM
b3
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
16 May 2015 09:54 PM
This thread is spam, it is in no way scripting discussion.


I script -~ chimmihc
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 09:55 PM
"spam"
sorry your royalty,
i deeply apologize for not knowing how to script
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 10:13 PM
b4
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 10:15 PM
b5
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 10:15 PM
b6
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 10:16 PM
b7
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 10:19 PM
b8
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
16 May 2015 10:21 PM
Just try messing around with the free regen scripts that are out there and if you need any help or encounter any problems then post them here, we'd be glad to help you. Also the wiki is a great place to start..

And please stop bumping this thread.

while true do the do
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
16 May 2015 10:21 PM
Yes, when you want it to regen just say something like

ModelName:Clone()
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
16 May 2015 10:22 PM
Oh what was I thinking?! That won't regenerate it! I apologize.
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 10:24 PM
ive been looking at some of the free models out there to begin with, but they all completely delete the model, then they respawn it.

i want one that keeps the old one, and regens a new one
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
16 May 2015 10:26 PM
Post a free model regen script and I will try and do what you want.
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
16 May 2015 10:30 PM
model = script.Parent.Parent--Indicates that the script interacts with the model the button is grouped with.
messageText = "The F-18 is ready for take off!"--If you want a message to appear upon pressing, type it here.

message = Instance.new("Message")
message.Text = messageText
backup = model:clone()
enabled = true

function regenerate()
message.Parent = game.Workspace
model:remove()

wait(2)--Change this number to display the regen message as long as you want in seconds.

model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
message.Parent = nil

script.Disabled = true
script.Parent.BrickColor = BrickColor.new(26)--Black
wait(10)--Change this number to change the time in between regenerations via the button, in seconds..
script.Parent.BrickColor = BrickColor.new(104)--Purple
script.Disabled = false
end

function onHit(hit)
if (hit.Parent:FindFirstChild("Humanoid") ~= nil) and enabled then
regenerate()
end
end

script.Parent.Touched:connect(onHit)

Alright, so I understood perhaps a 5% of what is written here, however, I do know that once you press the button, the model will respawn to where it was originally.

I want it to KEEP both models. Like when you press the button, for it to spawn a new one, but keep the other.

If possible, I'd also like it to not regen if the model is still in its original position.

Thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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