Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- -- Créer la fenêtre principale
- local Window = OrionLib:MakeWindow({Name = "SSwendRT", HidePremium = false, SaveConfig = true, IntroText = "Bienvenue dans Undertale Timeline Reset"})
- -- Fonction pour téléporter le joueur à une position donnée
- local function teleportTo(position)
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- humanoidRootPart.CFrame = CFrame.new(position)
- print("Téléporté à : "..tostring(position))
- end
- -- Fonction pour collecter tout ce qui se trouve dans un rayon de 20 cm en utilisant TouchInterest
- local function collectInRange(range)
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local position = humanoidRootPart.Position
- for _, item in pairs(workspace:GetDescendants()) do
- if item:IsA("BasePart") and (item.Position - position).Magnitude <= range then
- for _, touchInterest in pairs(item:GetChildren()) do
- if touchInterest:IsA("TouchInterest") then
- firetouchinterest(humanoidRootPart, item, 0)
- firetouchinterest(humanoidRootPart, item, 1)
- print("Objet collecté : "..item.Name)
- end
- end
- end
- end
- end
- -- Fonction pour téléporter le joueur à toutes les Souls dans le folder Blacklisted
- local function teleportToAllSouls()
- local blacklistedFolder = workspace:FindFirstChild("Blacklisted")
- if blacklistedFolder then
- print("Dossier 'Blacklisted' trouvé. Téléportation en cours...")
- for _, soul in ipairs(blacklistedFolder:GetChildren()) do
- if soul:IsA("BasePart") then
- teleportTo(soul.Position)
- wait(2) -- Attendre un moment avant la prochaine téléportation
- collectInRange(20) -- Collecter tout ce qui se trouve dans un rayon de 20 cm
- end
- end
- print("Téléportation à toutes les Souls terminée.")
- else
- print("Le dossier 'Blacklisted' n'a pas été trouvé dans le workspace.")
- end
- end
- -- Fonction pour équiper automatiquement le character
- local function equipCharacter()
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local usePart = workspace:WaitForChild("Map"):WaitForChild("CharacterSelection")
- :WaitForChild("Customs"):WaitForChild("Characters")
- :WaitForChild("Prototype 1"):WaitForChild("Use")
- :WaitForChild("ClickDetector")
- if usePart and usePart:IsA("ClickDetector") then
- fireclickdetector(usePart)
- print("Character équipé automatiquement.")
- else
- print("La partie 'Use' n'a pas été trouvée ou n'est pas un 'ClickDetector'.")
- end
- end
- -- Fonction pour dupliquer toutes les "Souls" dans le dossier Blacklisted à la même position avec leurs propriétés
- local function duplicateSouls()
- local blacklistedFolder = workspace:FindFirstChild("Blacklisted")
- if not blacklistedFolder then
- print("Le dossier 'Blacklisted' n'a pas été trouvé dans le workspace.")
- return
- end
- for _, soul in ipairs(blacklistedFolder:GetChildren()) do
- if soul.Name == "Soul" and soul:IsA("BasePart") then
- local duplicatedSoul = soul:Clone()
- duplicatedSoul.Parent = blacklistedFolder
- print("Soul dupliquée à la position : "..tostring(soul.Position))
- end
- end
- end
- -- Création des onglets et sections
- local MainTab = Window:MakeTab({Name = "Undertale Timeline Reset", Icon = "rbxassetid://4483345998", PremiumOnly = false})
- local FarmSection = MainTab:AddSection({Name = "Farm"})
- FarmSection:AddButton({
- Name = "Téléportation aux Souls (+ Pumpkins)",
- Callback = function()
- teleportToAllSouls()
- print("Téléportation aux Souls démarrée.")
- end
- })
- FarmSection:AddButton({
- Name = "Trouver SnowPile",
- Callback = function()
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local blacklistedFolder = workspace:FindFirstChild("Blacklisted")
- if blacklistedFolder then
- local snowPile = blacklistedFolder:FindFirstChild("Snow Pile")
- if snowPile then
- humanoidRootPart.CFrame = snowPile.CFrame + Vector3.new(0, 3, 0)
- print("Téléportation à 'Snow Pile'.")
- else
- print("Snow Pile non trouvé dans 'Blacklisted'.")
- end
- else
- print("Le dossier 'Blacklisted' n'a pas été trouvé dans le workspace.")
- end
- end
- })
- FarmSection:AddButton({
- Name = "Dupliquer les Souls",
- Callback = function()
- duplicateSouls()
- print("Duplication des Souls terminée.")
- end
- })
- FarmSection:AddButton({
- Name = "Équiper le Character",
- Callback = function()
- equipCharacter()
- print("Character équipé automatiquement.")
- end
- })
- -- Fonction d'initialisation
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment