Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = owner
- local sun = Instance.new("Part",plr.Character)
- sun.Material = Enum.Material.Neon
- sun.Size = Vector3.new(2,2,2)
- sun.Shape = "Ball"
- sun.BrickColor = BrickColor.new("New Yeller")
- local weld = Instance.new("Motor6D",sun)
- weld.Part0 = sun
- weld.Part1 = plr.Character.Head
- weld.C0 = CFrame.new(0,-3.5,0)
- local mesh = Instance.new("SpecialMesh",sun)
- mesh.MeshType = Enum.MeshType.Sphere
- local event = Instance.new("RemoteEvent",plr.Character)
- local sound = Instance.new("Sound",plr.Character.Head)
- sound.Looped = true
- sound.Volume = 10
- event.OnServerEvent:Connect(function(player,playl)
- print(player,playl)
- local playback = (playl*0.01)+0.1
- mesh.Scale = Vector3.new(playback,playback,playback)
- end)
- plr.Chatted:Connect(function(msg)
- if msg:sub(1,5) == "/play" then
- local victim = msg:sub(1,5)
- local soundid = string.gsub(msg,victim,"")
- sound.SoundId = "rbxassetid://"..soundid
- sound:Play()
- end
- end)
- NLS([[
- local remote = script.Parent:WaitForChild("RemoteEvent")
- local sound = script.Parent.Head:WaitForChild("Sound")
- while true do wait()
- remote:FireServer(sound.PlaybackLoudness)
- end]],plr.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement