Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = owner
- local remote = Instance.new("RemoteEvent",player.Character)
- local ball = Instance.new("Part",player.Character)
- local weld = Instance.new("Weld",ball)
- local sound = Instance.new("Sound",player.Character.Head)
- player.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()
- elseif msg:sub(1,5) == "/stop" then
- sound:Stop()
- end
- end)
- ball.Size =Vector3.new(2,2,2)
- weld.Part0 = ball
- weld.Part1 = player.Character.Head
- weld.C0 = CFrame.new(0,-2,0)
- local mesh = Instance.new("SpecialMesh",ball)
- mesh.MeshType = Enum.MeshType.Sphere
- ball.Shape = "Ball"
- ball.Material = Enum.Material.Grass
- ball.Color = Color3.fromRGB(250,250,250)
- --local particle = Instance.new("ParticleEmitter",ball)
- --particle.Texture = "rbxassetid://138994719"
- remote.OnServerEvent:Connect(function(plr,loud)
- local particle = Instance.new("ParticleEmitter",ball)
- particle.Texture = "rbxassetid://138994719"
- particle.Rate = NumberRange.new((loud*0.05)*6)
- particle.Speed = NumberRange.new((loud*0.05)*5)
- mesh.Scale = Vector3.new((loud*0.02)+0.1,(loud*0.02)+0.1,(loud*0.02)+0.1)
- end)
- NLS([[
- local player = game:GetService("Players").LocalPlayer
- local remote = player.Character.RemoteEvent
- local sound = player.Character.Head.Sound
- while true do wait()
- remote:FireServer(sound.PlaybackLoudness)
- end
- ]],player.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement