Yingyang005

Timeline

Dec 8th, 2024 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.40 KB | None | 0 0
  1. -- Chargement de la librairie Orion
  2. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  3.  
  4. -- Configuration de la fenêtre principale
  5. local Window = OrionLib:MakeWindow({
  6. Name = "UTR",
  7. HidePremium = false,
  8. SaveConfig = true,
  9. ConfigFolder = "SSwendRTConfig"
  10. })
  11.  
  12. -- Création d'un onglet
  13. local Tab = Window:MakeTab({
  14. Name = "Undertale Timeline Reset",
  15. Icon = "rbxassetid://4483345998",
  16. PremiumOnly = false
  17. })
  18.  
  19. -- Section du créateur
  20. Tab:AddSection({
  21. Name = "Creator Version"
  22. })
  23.  
  24. -- Ajout d'une étiquette
  25. Tab:AddLabel("Farm")
  26.  
  27. -- Case à cocher pour téléporter des objets
  28. Tab:AddToggle({
  29. Name = "Teleport Souls (+Presents)",
  30. Default = false,
  31. Callback = function(state)
  32. if state then
  33. local player = game.Players.LocalPlayer
  34. local character = player.Character or player.CharacterAdded:Wait()
  35. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  36. local blacklistedFolder = game.Workspace:FindFirstChild("Blacklisted")
  37.  
  38. local function teleportObjects()
  39. if not blacklistedFolder then
  40. warn("'Blacklisted' folder not found in Workspace.")
  41. return
  42. end
  43.  
  44. for _, object in ipairs(blacklistedFolder:GetChildren()) do
  45. if object.Name == "Soul" or object.Name == "Gift" or object.Name == "GoldIngot" or object.Name == "TCoin" or object.Name == "DSoul" then
  46. object.CFrame = humanoidRootPart.CFrame + Vector3.new(0, 3, 0)
  47. print(object.Name .. " téléporté vers le joueur.")
  48. end
  49. end
  50. end
  51.  
  52. teleportObjects()
  53.  
  54. local UserInputService = game:GetService("UserInputService")
  55. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  56. if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.P then
  57. teleportObjects()
  58. end
  59. end)
  60. end
  61. end
  62. })
  63.  
  64. -- Créer la maison et le portail
  65. Tab:AddButton({
  66. Name = "Créer Maison et Portail",
  67. Callback = function()
  68. local player = game.Players.LocalPlayer
  69. local character = player.Character or player.CharacterAdded:Wait()
  70. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  71. local playerPosition = humanoidRootPart.Position
  72.  
  73. -- Position où la maison sera spawnée
  74. local maisonSpawnPosition = Vector3.new(1000, 50, 1000) -- Position de spawn de la maison dans le monde
  75.  
  76. -- Création du dossier "Maison" dans Workspace
  77. local maisonFolder = Instance.new("Folder")
  78. maisonFolder.Name = "Maison"
  79. maisonFolder.Parent = game.Workspace
  80.  
  81. -- Création de la maison (premier étage)
  82. local maison = Instance.new("Model")
  83. maison.Name = "Maison"
  84. maison.Parent = maisonFolder
  85.  
  86. -- Ajout du premier étage (espace de la maison)
  87. local firstFloor = Instance.new("Part")
  88. firstFloor.Size = Vector3.new(50, 1, 50)
  89. firstFloor.Position = maisonSpawnPosition + Vector3.new(0, 0.5, 0)
  90. firstFloor.Anchored = true
  91. firstFloor.BrickColor = BrickColor.new("Bright yellow")
  92. firstFloor.Parent = maison
  93.  
  94. -- Ajout du deuxième étage avec des escaliers
  95. local secondFloor = Instance.new("Part")
  96. secondFloor.Size = Vector3.new(50, 1, 50)
  97. secondFloor.Position = maisonSpawnPosition + Vector3.new(0, 11.5, 0)
  98. secondFloor.Anchored = true
  99. secondFloor.BrickColor = BrickColor.new("Bright green")
  100. secondFloor.Parent = maison
  101.  
  102. -- Escalier pour accéder au deuxième étage
  103. local stairs = Instance.new("Part")
  104. stairs.Size = Vector3.new(4, 1, 10)
  105. stairs.Position = maisonSpawnPosition + Vector3.new(0, 1, -25)
  106. stairs.Anchored = true
  107. stairs.BrickColor = BrickColor.new("Bright red")
  108. stairs.Parent = maison
  109.  
  110. -- Ajout de meubles au premier étage
  111. local table = Instance.new("Part")
  112. table.Size = Vector3.new(5, 1, 5)
  113. table.Position = maisonSpawnPosition + Vector3.new(0, 0.5, 5)
  114. table.Anchored = true
  115. table.BrickColor = BrickColor.new("Bright violet")
  116. table.Parent = maison
  117.  
  118. -- Création du portail pour téléporter vers la position où le joueur l'utilise
  119. local portal = Instance.new("Part")
  120. portal.Name = "Portal"
  121. portal.Size = Vector3.new(4, 8, 1)
  122. portal.Position = maisonSpawnPosition + Vector3.new(5, 5, 0)
  123. portal.Anchored = true
  124. portal.BrickColor = BrickColor.new("Bright blue")
  125. portal.Transparency = 0 -- Assurez-vous que la transparence est à 0 pour qu'il soit visible
  126. portal.CanCollide = true -- Assurez-vous que le portail a une collision
  127. portal.Parent = maisonFolder -- Ajouter le portail au dossier Maison pour qu'il soit visible dans Workspace
  128.  
  129. -- Effet visuel du portail
  130. local particleEmitter = Instance.new("ParticleEmitter", portal)
  131. particleEmitter.Texture = "rbxassetid://12345678" -- Utiliser une texture pour les particules
  132. particleEmitter.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255), Color3.fromRGB(255, 255, 255)) -- Dégradé bleu à blanc
  133. particleEmitter.LightEmission = 0.75
  134. particleEmitter.Rate = 100
  135. particleEmitter.Speed = NumberRange.new(1, 3)
  136. particleEmitter.Size = NumberSequence.new(1, 2)
  137.  
  138. -- Lorsque le joueur touche le portail, il sera téléporté à la position où il l'utilise
  139. portal.Touched:Connect(function(hit)
  140. local character = hit.Parent
  141. if character:FindFirstChild("Humanoid") then
  142. -- Téléportation à la position du joueur qui a touché le portail
  143. local teleportPosition = humanoidRootPart.Position -- La position du joueur
  144. character:SetPrimaryPartCFrame(CFrame.new(teleportPosition)) -- Téléportation à la position du joueur
  145. print("Téléportation réussie vers la maison!")
  146. end
  147. end)
  148.  
  149. -- Suppression du portail après 5 secondes
  150. game:GetService("Debris"):AddItem(portal, 5)
  151. end
  152. })
  153.  
  154. -- Fin du script
  155. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment