Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- VISUALISER
- { Now using trails! }
- Created by Quil_Cyndaquil (ROBLOX) [UserID 5719877]
- MintyLatios (V3rmillion)
- Nebula Zorua#1938
- --]]
- local Player = game:service'Players'.localPlayer;
- local Char = Player.Character
- local Orb = Instance.new("Part",Char)
- Orb.Transparency = 1
- Orb.CanCollide=false
- Orb.Anchored = true
- local Attachment0 = Instance.new("Attachment",Orb)
- local Attachment1 = Instance.new("Attachment",Orb)
- local trail=Instance.new("Trail",Orb)
- local keypoints={}
- for i = 0,1,0.1 do
- local color = Color3.fromHSV(i,1,1)
- local keypoint = ColorSequenceKeypoint.new(i,color)
- table.insert(keypoints,keypoint)
- end
- trail.Color=ColorSequence.new(keypoints)
- trail.Attachment0=Attachment0
- trail.Attachment1=Attachment1
- trail.Lifetime = 4
- trail.Enabled=true
- local Sound = Instance.new("Sound",Char)
- Sound.Name = "VisSound"
- Sound.Volume = 1;
- Sound.Pitch = 1
- Sound.Looped = true
- Player.Chatted:connect(function(m)
- m=m:lower();
- if string.match(m, "id/(%w+)") or string.match(m, "play/(%w+)") then
- local id = tonumber(string.match(m, "id/(%w+)") or string.match(m, "play/(%w+)"))
- Sound.SoundId = "rbxassetid://"..id
- Sound:Play()
- elseif string.match(m, "volume/(%w+)") or string.match(m, "vol/(%w+)") then
- local vol = tonumber(string.match(m, "volume/(%w+)") or string.match(m, "vol/(%w+)"))
- Sound.Volume = vol
- elseif m:sub(1,6) == "pitch/" then
- local vol = tonumber(m:sub(7))
- Sound.Pitch = vol
- end
- end)
- local Rot = 0
- local RotInc = 1
- game:service'RunService'.RenderStepped:connect(function()
- Attachment0.CFrame = CFrame.new(0,Sound.PlaybackLoudness/150,0)
- Attachment1.CFrame = CFrame.new(0,-Sound.PlaybackLoudness/150,0)
- Rot = Rot + RotInc
- Orb.CFrame = Char.Torso.CFrame*CFrame.Angles(0,math.rad(Rot),0) * CFrame.new(0,0,3)
- end)
Add Comment
Please, Sign In to add comment