Advertisement
Thecodeeasar

Untitled

Nov 3rd, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. -- Load the Orion Library
  2. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  3.  
  4. -- Create a window using Orion
  5. local Window = OrionLib:MakeWindow({Name = "Speed Coil Manager", HidePremium = false, SaveConfig = true, ConfigFolder = "SpeedCoilConfigs"})
  6.  
  7. -- Function to create smoke effect
  8. local function createSmokeEffect(coil)
  9. local smoke = Instance.new("ParticleEmitter")
  10. smoke.Texture = "rbxassetid://243570145" -- Default smoke texture ID from Roblox
  11. smoke.Lifetime = NumberRange.new(1, 2)
  12. smoke.Rate = 100
  13. smoke.Size = NumberSequence.new(0.5, 1)
  14. smoke.Speed = NumberRange.new(0, 1)
  15. smoke.Parent = coil.Handle -- Assuming the Speed Coil has a Handle part
  16. end
  17.  
  18. -- Function to give Speed Coil to the player
  19. local function giveSpeedCoil()
  20. local player = game.Players.LocalPlayer
  21. local backpack = player:WaitForChild("Backpack")
  22.  
  23. -- Check if Speed Coil exists in ServerStorage
  24. local speedCoil = game.ServerStorage:FindFirstChild("Speed Coil") -- Adjust path as needed
  25.  
  26. if speedCoil then
  27. local coilClone = speedCoil:Clone()
  28. coilClone.Parent = backpack
  29.  
  30. -- Create the smoke effect
  31. createSmokeEffect(coilClone)
  32.  
  33. -- Notify player that they received the Speed Coil
  34. OrionLib:MakeNotification({
  35. Name = "Speed Coil Granted!",
  36. Content = "You have received a Speed Coil with enhanced smoke effects!",
  37. Time = 5
  38. })
  39. else
  40. warn("Speed Coil not found in ServerStorage.")
  41. OrionLib:MakeNotification({
  42. Name = "Error!",
  43. Content = "Speed Coil not found in ServerStorage.",
  44. Time = 5
  45. })
  46. end
  47. end
  48.  
  49. -- Create a button in the UI to give the Speed Coil
  50. local Tab = Window:MakeTab({
  51. Name = "Main",
  52. Icon = "rbxassetid://4483345998", -- Icon ID for your tab
  53. PremiumOnly = false
  54. })
  55.  
  56. Tab:AddButton({
  57. Name = "Get Speed Coil",
  58. Callback = function()
  59. giveSpeedCoil()
  60. end,
  61. })
  62.  
  63. -- Initialize Orion Library
  64. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement