Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").liampdoherty
- local Character = Player.Character
- local Torso = Character.Torso
- local Sound = Instance.new("Sound",Torso)
- local Play = false
- local Pause = false
- local Loop = false
- local Beat = .8
- p = game:GetService('Players').LocalPlayer
- p.Chatted:connect(function(msg)
- if msg:sub(1,5):lower()=='play/' then
- Play = true
- local val = Instance.new("NumberValue", p.Character)
- val.Name = "Song"
- val.Value = tonumber(msg:sub(6))
- local id = val.Value
- Sound:Stop()
- Sound.SoundId='rbxassetid://'..id
- Sound:Play()
- wait(1)
- val:Remove()
- elseif msg:sub(1,5):lower()=='pitch/' then
- local val = Instance.new("NumberValue", p.Character)
- val.Name = "Pitch"
- val.Value = tonumber(msg:sub(6))
- local Pitch = val.Value
- Sound.Pitch = Pitch
- val:Remove()
- elseif msg:sub(1,4):lower()=='vol/' then
- local val = Instance.new("NumberValue", p.Character)
- val.Name = "Vol"
- val.Value = tonumber(msg:sub(5))
- if val.Value > 10 then val.Value = math.huge
- end
- local id = val.Value
- Sound.Volume = id
- val:Remove()
- elseif msg:sub(1,5) == 'stop/' then
- Play = false
- Sound:Stop()
- end
- end)
- function Random(num)
- local section=num % 1 * 3;
- local secondary=0.5 * math.pi * (section % 1);
- if section < 1 then
- return 1,1 - math.cos(secondary),1 - math.sin(secondary);
- elseif section < 2 then
- return 1 - math.sin(secondary),1,1 - math.cos(secondary);
- else
- return 1 - math.cos(secondary),1 - math.sin(secondary),1;
- end
- end
- local Part = Instance.new("Part",Torso)
- Part.BrickColor = BrickColor.new("Really black")
- Part.Anchored = true
- Part.CanCollide = false
- Part.TopSurface = 'Smooth'
- Part.Material = Enum.Material.Neon
- Part.Transparency = 0
- local SelectionBox = Instance.new("SelectionBox",Part)
- SelectionBox.Adornee = Part
- SelectionBox.LineThickness = .009
- local a = 0
- game:GetService('RunService').Heartbeat(function()
- SelectionBox.Color = BrickColor.new(Random(tick()))
- local Beats = Sound.PlaybackLoudness/60 * Beat
- a=a+.1
- Part.Size = Vector3.new(6+Beats ,.1 ,6+Beats)
- Part.CFrame = Torso.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,a,0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement