Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. local positions = game.Workspace.positions
  2. local place1 = positions.place1
  3. local place2 = positions.place2
  4. local place3 = positions.place3
  5. local place4 = positions.place4
  6. local place5 = positions.place5
  7. local place6 = positions.place6
  8. local place7 = positions.place7
  9. local place8 = positions.place8
  10. local place9 = positions.place9
  11.  
  12. local runService = game:GetService("RunService")
  13. local debounce = false
  14.  
  15. script.Parent.Touched:Connect(function(hit)
  16. if not debounce then
  17. local playerName = hit:FindFirstAncestorOfClass("Model").Name
  18. local timeOnCross = game.Workspace.timeValue
  19.  
  20. if place1.placeValue.Value == "" then
  21. local placeValue = place1.placeValue
  22. placeValue.Value = playerName
  23. local timeValue = place1.timeValue
  24. timeValue.Value = timeOnCross.Value
  25. else
  26. if place2.placeValue.Value == "" then
  27. local placeValue = place2.placeValue
  28. placeValue.Value = playerName
  29. local timeValue = place2.timeValue
  30. timeValue.Value = timeOnCross.Value
  31. else
  32. if place3.placeValue.Value == "" then
  33. local placeValue = place3.placeValue
  34. placeValue.Value = playerName
  35. local timeValue = place3.timeValue
  36. timeValue.Value = timeOnCross.Value
  37. else
  38. if place4.placeValue.Value == "" then
  39. local placeValue = place4.placeValue
  40. placeValue.Value = playerName
  41. local timeValue = place4.timeValue
  42. timeValue.Value = timeOnCross.Value
  43. else
  44. if place5.placeValue.Value == "" then
  45. local placeValue = place5.placeValue
  46. placeValue.Value = playerName
  47. local timeValue = place5.timeValue
  48. timeValue.Value = timeOnCross.Value
  49. else
  50. if place6.placeValue.Value == "" then
  51. local placeValue = place6.placeValue
  52. placeValue.Value = playerName
  53. local timeValue = place6.timeValue
  54. timeValue.Value = timeOnCross.Value
  55. else
  56. if place7.placeValue.Value == "" then
  57. local placeValue = place7.placeValue
  58. placeValue.Value = playerName
  59. local timeValue = place7.timeValue
  60. timeValue.Value = timeOnCross.Value
  61. else
  62. if place8.placeValue.Value == "" then
  63. local placeValue = place8.placeValue
  64. placeValue.Value = playerName
  65. local timeValue = place8.timeValue
  66. timeValue.Value = timeOnCross.Value
  67. else
  68. if place9.placeValue.Value == "" then
  69. local placeValue = place9.placeValue
  70. placeValue.Value = playerName
  71. local timeValue = place9.timeValue
  72. timeValue.Value = timeOnCross.Value
  73. end
  74. end
  75. end
  76. end
  77. end
  78. end
  79. end
  80. end
  81. end
  82. runService.Heartbeat:Wait()
  83. debounce = false
  84. end
  85. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement