Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Load the Orion Library
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- -- Create a window using Orion
- local Window = OrionLib:MakeWindow({Name = "Speed Coil Manager", HidePremium = false, SaveConfig = true, ConfigFolder = "SpeedCoilConfigs"})
- -- Function to create smoke effect
- local function createSmokeEffect(coil)
- local smoke = Instance.new("ParticleEmitter")
- smoke.Texture = "rbxassetid://243570145" -- Default smoke texture ID from Roblox
- smoke.Lifetime = NumberRange.new(1, 2)
- smoke.Rate = 100
- smoke.Size = NumberSequence.new(0.5, 1)
- smoke.Speed = NumberRange.new(0, 1)
- smoke.Parent = coil.Handle -- Assuming the Speed Coil has a Handle part
- end
- -- Function to give Speed Coil to the player
- local function giveSpeedCoil()
- local player = game.Players.LocalPlayer
- local backpack = player:WaitForChild("Backpack")
- -- Check if Speed Coil exists in ServerStorage
- local speedCoil = game.ServerStorage:FindFirstChild("Speed Coil") -- Adjust path as needed
- if speedCoil then
- local coilClone = speedCoil:Clone()
- coilClone.Parent = backpack
- -- Create the smoke effect
- createSmokeEffect(coilClone)
- -- Notify player that they received the Speed Coil
- OrionLib:MakeNotification({
- Name = "Speed Coil Granted!",
- Content = "You have received a Speed Coil with enhanced smoke effects!",
- Time = 5
- })
- else
- warn("Speed Coil not found in ServerStorage.")
- OrionLib:MakeNotification({
- Name = "Error!",
- Content = "Speed Coil not found in ServerStorage.",
- Time = 5
- })
- end
- end
- -- Create a button in the UI to give the Speed Coil
- local Tab = Window:MakeTab({
- Name = "Main",
- Icon = "rbxassetid://4483345998", -- Icon ID for your tab
- PremiumOnly = false
- })
- Tab:AddButton({
- Name = "Get Speed Coil",
- Callback = function()
- giveSpeedCoil()
- end,
- })
- -- Initialize Orion Library
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement