model = game.Workspace.Space Ship
messageText = "Regenerating Space Ship.... sorry for lag!"
d = false
message = Instance.new("Message")
backup = model:clone()
n = 1
while true do
wait (300)
model:remove()
for i=1, #messageText do
wait(0.025)
t = string.sub(messageText, 1,n)
message.Parent = game.Workspace
message.Text = t
n = n+1
end
wait (3)
n = 1
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
message.Parent = nil
end
What is wrong? That script will regen in 300 seconds (5 minutes) my space ship. but it wont work. Can you help me plz? I'm a bloody-noob in scripting^^' |