Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Charger la librairie OrionLib depuis GitHub
- local OrionLib = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Orion/main/source'))()
- -- Création de la fenêtre principale de l'interface OrionLib
- local Window = OrionLib:MakeWindow({
- Name = "Outils de Télékinésie et Tp",
- HidePremium = true,
- SaveConfig = true
- })
- -- Création de l'onglet principal
- local MainTab = Window:MakeTab({
- Name = "Main",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- -- Fonction pour ajouter l'outil Télékinésie
- local function addTelekinesisTool()
- local telekinesisTool = Instance.new("Tool")
- telekinesisTool.Name = "Télékinésie"
- telekinesisTool.RequiresHandle = true
- local handle = Instance.new("Part")
- handle.Size = Vector3.new(1, 1, 1)
- handle.Name = "Handle"
- handle.Parent = telekinesisTool
- telekinesisTool.Parent = game.Players.LocalPlayer.Backpack
- end
- -- Fonction pour ajouter l'outil Tp
- local function addTpTool()
- local tpTool = Instance.new("Tool")
- tpTool.Name = "Tp"
- tpTool.RequiresHandle = true
- local handle = Instance.new("Part")
- handle.Size = Vector3.new(1, 1, 1)
- handle.Name = "Handle"
- handle.Parent = tpTool
- tpTool.Parent = game.Players.LocalPlayer.Backpack
- end
- -- Ajouter des boutons pour les outils
- MainTab:AddButton({
- Name = "Ajouter Télékinésie",
- Callback = function()
- addTelekinesisTool()
- OrionLib:MakeNotification({
- Name = "Succès",
- Content = "L'outil Télékinésie a été ajouté à votre sac.",
- Image = "rbxassetid://4483345998",
- Time = 3
- })
- end
- })
- MainTab:AddButton({
- Name = "Ajouter Tp",
- Callback = function()
- addTpTool()
- OrionLib:MakeNotification({
- Name = "Succès",
- Content = "L'outil Tp a été ajouté à votre sac.",
- Image = "rbxassetid://4483345998",
- Time = 3
- })
- end
- })
- -- Fonction pour désactiver la gravité pour tous les joueurs sauf l'initiateur
- local function disableGravityForAllExceptInitiator()
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- for _, obj in pairs(workspace:GetChildren()) do
- if obj:IsA("BasePart") and not obj:IsDescendantOf(character) then
- obj.Anchored = true -- Désactiver la gravité en ancrant l'objet
- end
- end
- for _, otherPlayer in pairs(game.Players:GetPlayers()) do
- if otherPlayer ~= player then
- local otherCharacter = otherPlayer.Character
- if otherCharacter then
- for _, part in pairs(otherCharacter:GetChildren()) do
- if part:IsA("BasePart") then
- part.Anchored = true -- Désactiver la gravité pour les autres joueurs
- end
- end
- end
- end
- end
- OrionLib:MakeNotification({
- Name = "Gravité Désactivée",
- Content = "La gravité est désactivée pour tous les objets et les joueurs sauf vous.",
- Image = "rbxassetid://4483345998",
- Time = 3
- })
- end
- -- Ajouter un bouton pour désactiver la gravité pour tous les joueurs sauf l'initiateur
- MainTab:AddButton({
- Name = "Désactiver Gravité",
- Callback = function()
- disableGravityForAllExceptInitiator()
- end
- })
- -- Initialisation de la fenêtre
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment