Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet("https://coasts.cool/scripts/UILibrary/CoastsUILibrary.lua"))()
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local ClientCursor = game:GetService("Workspace").Client.Cursor
- local MainCursor = game:GetService("Players").LocalPlayer.PlayerGui.CursorGui
- local CursorsHolder = game:GetService("Workspace").Cursors
- local RainbowCursor = false
- local CursorTrail = false
- function SpawnTrailBlock()
- local ClientCursor2 = ClientCursor:Clone()
- local MainCursorTrailed = MainCursor:Clone()
- ClientCursor2.Parent = CursorsHolder
- MainCursorTrailed.Parent = ClientCursor2
- MainCursorTrailed.Adornee = nil
- wait(0.1)
- for i,v in pairs(MainCursorTrailed:GetChildren()) do
- if v.Name == "ImageLabel" then
- 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()
- end
- end
- end
- local SoundSpaceTab = library:CreateTab("Sound Space")
- SoundSpaceTab:CreateSection("Sound Space")
- SoundSpaceTab:CreateCheckbox("Rainbow Cursor", function(enabled)
- if enabled then
- RainbowCursor = true
- TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageColor3 = Color3.fromRGB(255, 0, 0)}):Play()
- TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 0, 0)}):Play()
- wait(0.45)
- ColorValue = 0
- while RainbowCursor do
- MainCursor.ImageLabel.ImageColor3 = Color3.fromHSV(ColorValue, 1, 1)
- MainCursor.ImageLabel.BackgroundColor3 = Color3.fromHSV(ColorValue, 1, 1)
- ColorValue = ColorValue + 1/255
- if ColorValue >= 1 then
- ColorValue = 0
- end
- wait()
- end
- elseif not enabled then
- RainbowCursor = false
- TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageColor3 = Color3.fromRGB(255, 255, 255)}):Play()
- TweenService:Create(MainCursor.ImageLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play()
- end
- end)
- SoundSpaceTab:CreateCheckbox("Cursor Trail", function(enabled)
- if enabled then
- CursorTrail = true
- MainCursor.ImageLabel.BackgroundTransparency = 0
- RunService:BindToRenderStep("CursorTrail", 1, SpawnTrailBlock)
- while CursorTrail do
- wait(10)
- for i,v in pairs(CursorsHolder:GetChildren()) do
- if v.Name == "Cursor" then
- for o, b in pairs(v:GetChildren()) do
- if b.Name == "CursorGui" then
- for p, n in pairs(b:GetChildren()) do
- if n.Name == "ImageLabel" then
- 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()
- end
- end
- end
- end
- end
- end
- wait(1.5)
- for i, v in next, CursorsHolder:GetChildren() do
- v:Destroy()
- end
- end
- elseif not enabled then
- CursorTrail = false
- RunService:UnbindFromRenderStep("CursorTrail")
- MainCursor.ImageLabel.BackgroundTransparency = 1
- wait(1)
- for i, v in next, CursorsHolder:GetChildren() do
- v:Destroy()
- end
- end
- end)
- library:SetTab("Sound Space")
- library:Intro()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement