Advertisement
coreyV

teleportservice script

Nov 2nd, 2021
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. --GRAVITY ROPES (VARS)
  2.  
  3. local Tele1A = script.Parent.Parent.Tele1A
  4. local Tele1B = script.Parent.Parent.Tele1B
  5. local Tele1C = script.Parent.Parent.Tele1C
  6. local Tele2 = script.Parent.Parent.Tele2
  7.  
  8. --THE CRUCIBLE (VARS)
  9.  
  10. local Tele3A = script.Parent.Parent.Tele3A
  11. local Tele3B = script.Parent.Parent.Tele3B
  12. local Tele4A = script.Parent.Parent.Tele4A
  13. local Tele4B = script.Parent.Parent.Tele4B
  14. local Tele5 = script.Parent.Parent.Tele5
  15. local Tele6 = script.Parent.Parent.Tele6
  16. local Tele7 = script.Parent.Parent.Tele7
  17. local Tele8 = script.Parent.Parent.Tele8
  18. local Tele9 = script.Parent.Parent.Tele9
  19. local Tele10 = script.Parent.Parent.Tele10
  20.  
  21. local debounce = false
  22.  
  23. --GRAV ROPES CODE (DO NOT TOUCH IF YOU CAN'T SCRIPT, TRUST ME)
  24.  
  25. Tele1A.Touched:Connect(function(touched)
  26. if touched.Parent:FindFirstChild("Humanoid")then
  27. print("TelePart Touched")
  28. local char = touched.Parent
  29. local humanoidRootPart = char.HumanoidRootPart
  30.  
  31. humanoidRootPart.Position = Tele2.Position
  32. end
  33. end)
  34.  
  35. Tele1B.Touched:Connect(function(touched)
  36. if touched.Parent:FindFirstChild("Humanoid")then
  37. print("TelePart Touched")
  38. local char = touched.Parent
  39. local humanoidRootPart = char.HumanoidRootPart
  40.  
  41. humanoidRootPart.Position = Tele2.Position
  42. end
  43. end)
  44.  
  45. Tele1C.Touched:Connect(function(touched)
  46. if touched.Parent:FindFirstChild("Humanoid")then
  47. print("TelePart Touched")
  48. local char = touched.Parent
  49. local humanoidRootPart = char.HumanoidRootPart
  50.  
  51. humanoidRootPart.Position = Tele2.Position
  52. end
  53. end)
  54.  
  55. --THE CRUCIBLE TELE CODE (AGAIN, DO NOT TOUCH IF YOU CAN'T SCRIPT.)
  56.  
  57. Tele3A.Touched:Connect(function(touched)
  58. if touched.Parent:FindFirstChild("Humanoid")then
  59. print("TelePart Touched")
  60. local char = touched.Parent
  61. local humanoidRootPart = char.HumanoidRootPart
  62.  
  63. humanoidRootPart.Position = Tele4A.Position
  64. end
  65. end)
  66.  
  67. Tele3B.Touched:Connect(function(touched)
  68. if touched.Parent:FindFirstChild("Humanoid")then
  69. print("TelePart Touched")
  70. local char = touched.Parent
  71. local humanoidRootPart = char.HumanoidRootPart
  72.  
  73. humanoidRootPart.Position = Tele4B.Position
  74. end
  75. end)
  76.  
  77. Tele5.Touched:Connect(function(touched)
  78. if not debounce then
  79. debounce = true
  80. if touched.Parent:FindFirstChild("Humanoid")then
  81. print("TelePart Touched")
  82. local char = touched.Parent
  83. local humanoidRootPart = char.HumanoidRootPart
  84. humanoidRootPart.Position = Tele6.Position
  85. wait(1)
  86. debounce = false
  87. end
  88. end
  89. end)
  90.  
  91. Tele6.Touched:Connect(function(touched)
  92.  
  93. if touched.Parent:FindFirstChild("Humanoid")then
  94. print("TelePart Touched")
  95. local char = touched.Parent
  96. local humanoidRootPart = char.HumanoidRootPart
  97. humanoidRootPart.Position = Tele9.Position
  98. wait(1)
  99. debounce = false
  100. end
  101. end
  102. end)
  103.  
  104. Tele7.Touched:Connect(function(touched)
  105. if not debounce then
  106. debounce = true
  107. if touched.Parent:FindFirstChild("Humanoid")then
  108. print("TelePart Touched")
  109. local char = touched.Parent
  110. local humanoidRootPart = char.HumanoidRootPart
  111. humanoidRootPart.Position = Tele8.Position
  112. wait(1)
  113. debounce = false
  114. end
  115. end
  116. end)
  117.  
  118. Tele8.Touched:Connect(function(touched)
  119. if not debounce then
  120. debounce = true
  121. if touched.Parent:FindFirstChild("Humanoid")then
  122. print("TelePart Touched")
  123. local char = touched.Parent
  124. local humanoidRootPart = char.HumanoidRootPart
  125. humanoidRootPart.Position = Tele10.Position
  126. wait(1)
  127. debounce = false
  128. end
  129. end
  130. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement