User:Kirbyace: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Kirbyace
No edit summary
 
>JulienDethurens
Nominated for deletion.
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Scripting help ==
{{delete}}
If anyone would like some script help i would be glad to help,
first off here are some minor scripts
=== Regeneration ===
<pre>
model = game.Workspace.MyModelName --Replace the 'MyModelName' with the name of your model.
messageText = "Regenerating MyModelName..." --And replace it here!
message = Instance.new("Message")
message.Text = messageText
backup = model:clone()
 
while true do
wait(300) --How long till regeneration in seconds.
message.Parent = game.Workspace
        wait(0.1) --allows the message to appear before removing the model
model:remove()
wait(1.9) -- wait a small bit before cloning
 
model = backup:clone()
        wait(2) -- wait a final 2 seconds. Note that in total, the wait time is still 4 seconds
model.Parent = game.Workspace
model:makeJoints()
message.Parent = nil --clears message
end
</pre>
Change the "MyModelName" to your model or leave it like game.Workspace so it regenerates everything!
 
=== Explosion ===
Create a HUGE explosion with this baby.
<pre>function createExplosion(position)
 
  explosion = Instance.new("Explosion")--Creates The Explosion.
  explosion.Position = position --Where The Explosion Is.
  explosion.Parent = game.Workspace --It Has To Be Visible Correct?
 
end
</pre>
 
Just add this script to a brick and its gonna explode if you touch it.

Latest revision as of 23:56, 5 May 2012

This page has been nominated for deletion