Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local char = player.Character
- player.Chatted:connect(function(Said)
- if Said == ";on" then
- local Music = Instance.new("Sound", workspace)
- Music.SoundId = "http://www.roblox.com/asset/?id=547275939"
- Music.Volume = 1
- Music.Looped = true
- Music:Play()
- Music.Name = "VisualSong"
- local Visual = Instance.new("Part")
- Visual.Parent = workspace
- Visual.CanCollide = false
- Visual.Material = "Neon"
- Visual.Name = "Visual"
- game:GetService("RunService").RenderStepped:connect(function()
- Visual.CFrame = char.Torso.CFrame * CFrame.new(0, -5, -5)
- local Loudness = Music.PlaybackLoudness / 3
- Visual.Size = Vector3.new(0.5 ,Loudness, 0.5)
- end)
- end
- if Said == ";off" then
- local rem = workspace:FindFirstChild("Visual")
- local rem2 = workspace:FindFirstChild("VisualSong")
- if rem then
- rem:remove()
- end
- if rem2 then
- rem2:remove()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement