Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local teleport = false
- local auto = true
- local temps = 100000
- local creer = function (posx)
- local tapis = Instance.new("Part", workspace)
- tapis.CanCollide = true
- --tapis.Color = Color3.new(0, 255, 0)
- tapis.Anchored = true
- tapis.Position = Vector3.new(-50, 125, posx)
- tapis.Size = Vector3.new(50,2,2000)
- tapis.Velocity = Vector3.new(0, 0, 500)
- tapis.Transparency = 0.75
- tapis.Name = "TRUCDEHACKARETIRER"
- print("== Pont créé. ==")
- print("Position X:"..tapis.Position.X)
- print("Position Y:"..tapis.Position.Y)
- print("Position Z:"..tapis.Position.Z)
- print("Longueur:"..tapis.Size.Z)
- if teleport then print("Téléportation activée.") end
- print("")
- print("")
- if teleport then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = tapis.CFrame end
- --wait(temps)
- --tapis:Destroy()
- tapis.Touched:Connect(function (part)
- --if(part.Parent.Humanoid==nil)then part:Destroy() end
- end)
- end
- local creerFin = function (posx)
- local tapis = Instance.new("Part", workspace)
- tapis.CanCollide = false
- --tapis.Color = Color3.new(0, 255, 0)
- tapis.Anchored = true
- tapis.Position = Vector3.new(-50, 125, posx)
- tapis.Size = Vector3.new(50,10,50)
- tapis.Velocity = Vector3.new(0, 0, -500)
- tapis.Transparency = 0
- tapis.Name = "TRUCDEHACKARETIRER"
- print("== Fin du pont créée. ==")
- print("Position X:"..tapis.Position.X)
- print("Position Y:"..tapis.Position.Y)
- print("Position Z:"..tapis.Position.Z)
- print("Longueur:"..tapis.Size.Z)
- if teleport then print("Téléportation activée.") end
- print("")
- print("")
- if teleport then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = tapis.CFrame end
- --wait(temps)
- --tapis:Destroy()
- tapis.Touched:Connect(function (part)
- 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
- end)
- end
- local creerPortail = function ()
- local tapis = Instance.new("Part", workspace)
- tapis.CanCollide = true
- tapis.Color = Color3.new(0, 1, 0)
- tapis.Anchored = true
- tapis.Position = Vector3.new(-50, 0, 750)
- tapis.Size = Vector3.new(10,20,3)
- --tapis.Velocity = Vector3.new(0, 0, 0)
- tapis.Transparency = 0
- tapis.Name = "TRUCDEHACKARETIRER"
- print("== Portail créée. ==")
- print("Position X:"..tapis.Position.X)
- print("Position Y:"..tapis.Position.Y)
- print("Position Z:"..tapis.Position.Z)
- print("Longueur:"..tapis.Size.Z)
- if teleport then print("Téléportation activée.") end
- print("")
- print("")
- if teleport then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = portail.CFrame end
- --wait(temps)
- --tapis:Destroy()
- tapis.Touched:Connect(function (part)
- if(part.Parent.Humanoid==nil)then part.CFrame = CFrame.new(-50,175,1000) else part.Parent.HumanoidRootPart.CFrame = CFrame.new(-50,175,1000) end
- end)
- end
- creer(1000)
- creer(3000)
- creer(5000)
- creer(7000)
- creer(8000)
- creerFin(9000)
- creerPortail()
- if(auto==false)then
- wait(temps)
- workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
- workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
- workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
- workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
- workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
- workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
- workspace:FindFirstChild("TRUCDEHACKARETIRER"):Destroy()
- else
- print("Mode automatique activé.")
- while true do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-50,175,1000)
- wait(30)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement