Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. x=game.ServerStorage.Crystal:Clone()
  2. while true do
  3.     wait(.25)
  4.     if script.Parent.Humanoid.Health<1 then
  5.         workspace.Wave.Value = 1
  6.         workspace.WaveTimer.Value = 30
  7.         h=Instance.new("Hint")
  8.         h.Parent = script
  9.         h.Text = "You lost game, restarting..."
  10.         if workspace.WaveTimer>0 then
  11.         game.Workspace:findFirstChild("Wave" .. game.Workspace.Wave.Value)
  12.         end
  13.         wait(5)
  14.         x.Parent = workspace
  15.         script.Parent:Destroy()
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement