|
| 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 |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 16 May 2015 09:50 PM |
wiki.roblox.com
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|
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 |
|
|
|
| 16 May 2015 09:55 PM |
"spam" sorry your royalty, i deeply apologize for not knowing how to script |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|