CleanYoCuukiez

Freeze Tag

Jul 16th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. -freeze tag script. This is a modified hide and seek script. If it doesn't work there are hide and seek scripts that don't work. Thank you for your concern.
  2.  
  3. function Choose()
  4. local P = game.Players:GetChildren()
  5. for i=1, 1 do
  6. local RP = P[math.random(1,#P)]
  7. if RP.Character ~= nil and RP ~= nil then
  8. RP.Character.Name = "The Chosen One!"
  9. Message(RP.Name .. " is it!",game.Workspace,4)
  10.  
  11. end
  12. end
  13.  
  14. if RP~=nil then
  15. game.Lighting["Freeze Ray"]:clone().Parent = RP.Backpack
  16. for i=1, 3 do
  17. game.Lighting["Trap "]:clone().Parent = RP.Backpack
  18. end
  19. end
  20.  
  21. if RP~= nil then
  22. Message("You just got four tools",RP,3)
  23. end
  24. if RP ~= nil then
  25. Message("They only work once, use them wisely.",RP,5)
  26. end
  27.  
  28. Message("End of the game! A new game will start shortly.",game.Workspace,4)
  29.  
  30. for i=1 , 3 do
  31. if game.Workspace:findFirstChild("Trap") ~= nil then
  32. game.Workspace.Trap:remove()
  33. end
  34. end
  35.  
  36. if game.Workspace:findFirstChild("It ") ~= nil then
  37. game.Workspace["It "]:remove()
  38. end
  39.  
  40. wait(10)
  41. Message("Time for a new game!",game.Workspace,4)
  42. Start()
  43.  
  44. function Start()
  45. if game.Players.NumPlayers > 0 then
  46. if game.Workspace:findFirstChild("Start") ~= nil then
  47. game.Workspace.Start:remove()
  48. end
  49. Choose()
  50. elseif game.Players.NumPlayers < 4 then
  51. Message("Not enough players, at least 4 are needed to play.",game.Workspace,5)
  52. print("Not enough players")
  53. Wait()
  54. end
  55. end
Add Comment
Please, Sign In to add comment