Advertisement
KaesK

Untitled

Jun 4th, 2020
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. local teleport = false
  2. local auto = true
  3. local temps = 100000
  4. local creer = function (posx)
  5. local tapis = Instance.new("Part", workspace)
  6. tapis.CanCollide = true
  7. --tapis.Color = Color3.new(0, 255, 0)
  8. tapis.Anchored = true
  9. tapis.Position = Vector3.new(-50, 125, posx)
  10. tapis.Size = Vector3.new(50,2,2000)
  11. tapis.Velocity = Vector3.new(0, 0, 500)
  12. tapis.Transparency = 0.75
  13. tapis.Name = "TRUCDEHACKARETIRER"
  14. print("== Pont créé. ==")
  15. print("Position X:"..tapis.Position.X)
  16. print("Position Y:"..tapis.Position.Y)
  17. print("Position Z:"..tapis.Position.Z)
  18. print("Longueur:"..tapis.Size.Z)
  19. if teleport then print("Téléportation activée.") end
  20. print("")
  21. print("")
  22. if teleport then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = tapis.CFrame end
  23. --wait(temps)
  24. --tapis:Destroy()
  25. tapis.Touched:Connect(function (part)
  26. --if(part.Parent.Humanoid==nil)then part:Destroy() end
  27. end)
  28. end
  29. local creerFin = function (posx)
  30. local tapis = Instance.new("Part", workspace)
  31. tapis.CanCollide = false
  32. --tapis.Color = Color3.new(0, 255, 0)
  33. tapis.Anchored = true
  34. tapis.Position = Vector3.new(-50, 125, posx)
  35. tapis.Size = Vector3.new(50,10,50)
  36. tapis.Velocity = Vector3.new(0, 0, -500)
  37. tapis.Transparency = 0
  38. tapis.Name = "TRUCDEHACKARETIRER"
  39. print("== Fin du pont créée. ==")
  40. print("Position X:"..tapis.Position.X)
  41. print("Position Y:"..tapis.Position.Y)
  42. print("Position Z:"..tapis.Position.Z)
  43. print("Longueur:"..tapis.Size.Z)
  44. if teleport then print("Téléportation activée.") end
  45. print("")
  46. print("")
  47. if teleport then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = tapis.CFrame end
  48. --wait(temps)
  49. --tapis:Destroy()
  50. tapis.Touched:Connect(function (part)
  51. if(part.Parent.Humanoid==nil)then part.CFrame = CFrame.new(-60,-250,9523) part.Velocity = Vector3.new(0, 0, 0) else part.Parent.HumanoidRootPart.CFrame = CFrame.new(-60,-250,9523) part.Parent.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0) end
  52. end)
  53. end
  54. local creerPortail = function ()
  55. local tapis = Instance.new("Part", workspace)
  56. tapis.CanCollide = true
  57. tapis.Color = Color3.new(0, 1, 0)
  58. tapis.Anchored = true
  59. tapis.Position = Vector3.new(-50, 0, 750)
  60. tapis.Size = Vector3.new(10,20,3)
  61. --tapis.Velocity = Vector3.new(0, 0, 0)
  62. tapis.Transparency = 0
  63. tapis.Name = "TRUCDEHACKARETIRER"
  64. print("== Portail créée. ==")
  65. print("Position X:"..tapis.Position.X)
  66. print("Position Y:"..tapis.Position.Y)
  67. print("Position Z:"..tapis.Position.Z)
  68. print("Longueur:"..tapis.Size.Z)
  69. if teleport then print("Téléportation activée.") end
  70. print("")
  71. print("")
  72. if teleport then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = portail.CFrame end
  73. --wait(temps)
  74. --tapis:Destroy()
  75. tapis.Touched:Connect(function (part)
  76. if(part.Parent.Humanoid==nil)then part.CFrame = CFrame.new(-50,175,1000) else part.Parent.HumanoidRootPart.CFrame = CFrame.new(-50,175,1000) end
  77. end)
  78. end
  79. creer(1000)
  80. creer(3000)
  81. creer(5000)
  82. creer(7000)
  83. creer(8000)
  84. creerFin(9000)
  85. creerPortail()
  86. if(auto==false)then
  87. wait(temps)
  88. workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
  89. workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
  90. workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
  91. workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
  92. workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
  93. workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
  94. workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
  95. else
  96. print("Mode automatique activé.")
  97. while true do
  98. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-50,175,1000)
  99. wait(30)
  100. end
  101. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement