dralion
|
  |
| Joined: 12 Apr 2008 |
| Total Posts: 17440 |
|
|
| 18 Oct 2012 03:00 PM |
Here's the script I recieved from someone else:
model = game.Workspace.MyModelName messageText = "Regenerating MyModelName..."
message = Instance.new("Message") message.Text = messageText backup = model:clone()
while true do wait(300) -- regenerate this model every 300 seconds
message.Parent = game.Workspace model:remove()
wait(4) -- display regen message for 4 seconds
model = backup:clone() model.Parent = game.Workspace model:makeJoints() message.Parent = nil end
The concept of the place I'm using it at is there's a train that crashes. I want the train to regen every 5 minutes, but it doesn't even regen at all. Can someone help? |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 18 Oct 2012 03:10 PM |
modelname = "Hehe" model = game.Lighting["Car"] --use lighting messageText = "Regenerating" "" ..modelname.. --concat
message = Instance.new("Message") message.Text = messageText backup = model:clone()
while true do wait(300) -- regenerate this model every 300 seconds
message.Parent = game.Workspace
wait(4) -- display regen message for 4 seconds
a = model:Clone() a.Parent = game.Workspace a:MakeJoints() message.Parent:Destroy() end
|
|
|
| Report Abuse |
|
|
|
| 18 Oct 2012 03:23 PM |
>model = game.Lighting["Car"] --use lighting
Why are you using ["Car"] when you can just use .Car? That is completely pointless. |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 18 Oct 2012 03:31 PM |
@Buddy
Because maybe he has a space in the name of his model.
think. |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2012 03:33 PM |
| I don't see his model name anywhere in his script. So how can I think? |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 18 Oct 2012 03:34 PM |
@Buddy
I don't see no spaces anywhere.. And plus he had MODELNAMEHERE
So how can I think? |
|
|
| Report Abuse |
|
|
dralion
|
  |
| Joined: 12 Apr 2008 |
| Total Posts: 17440 |
|
|
| 18 Oct 2012 04:16 PM |
Oh, it does have a space. I should have mentioned that.
It's called "Modern Train".
Maybe that's where I messed up. |
|
|
| Report Abuse |
|
|