Yingyang005

Goat

Dec 9th, 2024 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. -- Charger la librairie OrionLib depuis GitHub
  2. local OrionLib = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Orion/main/source'))()
  3.  
  4. -- Création de la fenêtre principale de l'interface OrionLib
  5. local Window = OrionLib:MakeWindow({
  6. Name = "Outils de Télékinésie et Tp",
  7. HidePremium = true,
  8. SaveConfig = true
  9. })
  10.  
  11. -- Création de l'onglet principal
  12. local MainTab = Window:MakeTab({
  13. Name = "Main",
  14. Icon = "rbxassetid://4483345998",
  15. PremiumOnly = false
  16. })
  17.  
  18. -- Fonction pour ajouter l'outil Télékinésie
  19. local function addTelekinesisTool()
  20. local telekinesisTool = Instance.new("Tool")
  21. telekinesisTool.Name = "Télékinésie"
  22. telekinesisTool.RequiresHandle = true
  23.  
  24. local handle = Instance.new("Part")
  25. handle.Size = Vector3.new(1, 1, 1)
  26. handle.Name = "Handle"
  27. handle.Parent = telekinesisTool
  28.  
  29. telekinesisTool.Parent = game.Players.LocalPlayer.Backpack
  30. end
  31.  
  32. -- Fonction pour ajouter l'outil Tp
  33. local function addTpTool()
  34. local tpTool = Instance.new("Tool")
  35. tpTool.Name = "Tp"
  36. tpTool.RequiresHandle = true
  37.  
  38. local handle = Instance.new("Part")
  39. handle.Size = Vector3.new(1, 1, 1)
  40. handle.Name = "Handle"
  41. handle.Parent = tpTool
  42.  
  43. tpTool.Parent = game.Players.LocalPlayer.Backpack
  44. end
  45.  
  46. -- Ajouter des boutons pour les outils
  47. MainTab:AddButton({
  48. Name = "Ajouter Télékinésie",
  49. Callback = function()
  50. addTelekinesisTool()
  51. OrionLib:MakeNotification({
  52. Name = "Succès",
  53. Content = "L'outil Télékinésie a été ajouté à votre sac.",
  54. Image = "rbxassetid://4483345998",
  55. Time = 3
  56. })
  57. end
  58. })
  59.  
  60. MainTab:AddButton({
  61. Name = "Ajouter Tp",
  62. Callback = function()
  63. addTpTool()
  64. OrionLib:MakeNotification({
  65. Name = "Succès",
  66. Content = "L'outil Tp a été ajouté à votre sac.",
  67. Image = "rbxassetid://4483345998",
  68. Time = 3
  69. })
  70. end
  71. })
  72.  
  73. -- Fonction pour désactiver la gravité pour tous les joueurs sauf l'initiateur
  74. local function disableGravityForAllExceptInitiator()
  75. local player = game.Players.LocalPlayer
  76. local character = player.Character or player.CharacterAdded:Wait()
  77. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  78.  
  79. for _, obj in pairs(workspace:GetChildren()) do
  80. if obj:IsA("BasePart") and not obj:IsDescendantOf(character) then
  81. obj.Anchored = true -- Désactiver la gravité en ancrant l'objet
  82. end
  83. end
  84.  
  85. for _, otherPlayer in pairs(game.Players:GetPlayers()) do
  86. if otherPlayer ~= player then
  87. local otherCharacter = otherPlayer.Character
  88. if otherCharacter then
  89. for _, part in pairs(otherCharacter:GetChildren()) do
  90. if part:IsA("BasePart") then
  91. part.Anchored = true -- Désactiver la gravité pour les autres joueurs
  92. end
  93. end
  94. end
  95. end
  96. end
  97.  
  98. OrionLib:MakeNotification({
  99. Name = "Gravité Désactivée",
  100. Content = "La gravité est désactivée pour tous les objets et les joueurs sauf vous.",
  101. Image = "rbxassetid://4483345998",
  102. Time = 3
  103. })
  104. end
  105.  
  106. -- Ajouter un bouton pour désactiver la gravité pour tous les joueurs sauf l'initiateur
  107. MainTab:AddButton({
  108. Name = "Désactiver Gravité",
  109. Callback = function()
  110. disableGravityForAllExceptInitiator()
  111. end
  112. })
  113.  
  114. -- Initialisation de la fenêtre
  115. OrionLib:Init()
  116.  
Advertisement
Add Comment
Please, Sign In to add comment