Advertisement
Meliodas0_0

Sound Space Rainbow cursor

Feb 19th, 2020
1,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://coasts.cool/scripts/UILibrary/CoastsUILibrary.lua"))()
  2.  
  3. local RunService = game:GetService("RunService")
  4. local TweenService = game:GetService("TweenService")
  5.  
  6. local ClientCursor = game:GetService("Workspace").Client.Cursor
  7. local MainCursor = game:GetService("Players").LocalPlayer.PlayerGui.CursorGui
  8. local CursorsHolder = game:GetService("Workspace").Cursors
  9.  
  10. local RainbowCursor = false
  11. local CursorTrail = false
  12.  
  13. function SpawnTrailBlock()
  14. local ClientCursor2 = ClientCursor:Clone()
  15. local MainCursorTrailed = MainCursor:Clone()
  16.  
  17. ClientCursor2.Parent = CursorsHolder
  18. MainCursorTrailed.Parent = ClientCursor2
  19. MainCursorTrailed.Adornee = nil
  20.  
  21. wait(0.1)
  22. for i,v in pairs(MainCursorTrailed:GetChildren()) do
  23. if v.Name == "ImageLabel" then
  24. TweenService:Create(v, TweenInfo.new(1.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, 0, 0.5, 0), Size = UDim2.new(0, 0, 0, 0)}):Play()
  25. end
  26. end
  27. end
  28.  
  29. local SoundSpaceTab = library:CreateTab("Sound Space")
  30.  
  31. SoundSpaceTab:CreateSection("Sound Space")
  32.  
  33. SoundSpaceTab:CreateCheckbox("Rainbow Cursor", function(enabled)
  34. if enabled then
  35. RainbowCursor = true
  36.  
  37. TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageColor3 = Color3.fromRGB(255, 0, 0)}):Play()
  38. TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 0, 0)}):Play()
  39.  
  40. wait(0.45)
  41. ColorValue = 0
  42. while RainbowCursor do
  43. MainCursor.ImageLabel.ImageColor3 = Color3.fromHSV(ColorValue, 1, 1)
  44. MainCursor.ImageLabel.BackgroundColor3 = Color3.fromHSV(ColorValue, 1, 1)
  45. ColorValue = ColorValue + 1/255
  46. if ColorValue >= 1 then
  47. ColorValue = 0
  48. end
  49. wait()
  50. end
  51. elseif not enabled then
  52. RainbowCursor = false
  53.  
  54. TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  55. TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  56. end
  57. end)
  58.  
  59. SoundSpaceTab:CreateCheckbox("Cursor Trail", function(enabled)
  60. if enabled then
  61. CursorTrail = true
  62.  
  63. MainCursor.ImageLabel.BackgroundTransparency = 0
  64.  
  65. RunService:BindToRenderStep("CursorTrail", 1, SpawnTrailBlock)
  66.  
  67. while CursorTrail do
  68. wait(10)
  69. for i,v in pairs(CursorsHolder:GetChildren()) do
  70. if v.Name == "Cursor" then
  71. for o, b in pairs(v:GetChildren()) do
  72. if b.Name == "CursorGui" then
  73. for p, n in pairs(b:GetChildren()) do
  74. if n.Name == "ImageLabel" then
  75. TweenService:Create(n, TweenInfo.new(1.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, 0, 0.5, 0), Size = UDim2.new(0, 0, 0, 0)}):Play()
  76. end
  77. end
  78. end
  79. end
  80. end
  81. end
  82.  
  83. wait(1.5)
  84. for i, v in next, CursorsHolder:GetChildren() do
  85. v:Destroy()
  86. end
  87. end
  88.  
  89. elseif not enabled then
  90. CursorTrail = false
  91. RunService:UnbindFromRenderStep("CursorTrail")
  92.  
  93. MainCursor.ImageLabel.BackgroundTransparency = 1
  94.  
  95. wait(1)
  96. for i, v in next, CursorsHolder:GetChildren() do
  97. v:Destroy()
  98. end
  99. end
  100. end)
  101.  
  102. library:SetTab("Sound Space")
  103. library:Intro()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement