Advertisement
DrawingJhon

Untitled

Jul 22nd, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. script.Parent = owner.PlayerGui
  2.  
  3. local remote = Instance.new("RemoteEvent", script)
  4. remote.Name = "test"
  5.  
  6. local part = Instance.new("Part", workspace)
  7. part.Anchored = true
  8. part.Shape = "Cylinder"
  9. part.Rotation = Vector3.new(0, 0, 90)
  10. part.Position = Vector3.new(0, 0.2, 0)
  11. part.Size = Vector3.new(0.2, 1, 1)
  12. part.TopSurface = "Smooth"
  13. part.BottomSurface = "Smooth"
  14. part.BrickColor = BrickColor.new("Really red")
  15. part.Material = "Neon"
  16.  
  17. local part2 = Instance.new("Part",workspace)
  18. part2.Anchored = true
  19. part2.Shape = "Cylinder"
  20. part2.Rotation = Vector3.new(0, 0, 90)
  21. part2.Position = Vector3.new(0, 0.1, 0)
  22. part2.Size = Vector3.new(0.1, 1, 1)
  23. part2.BrickColor = BrickColor.new(0, 0, 0)
  24. part2.Material = "Neon"
  25.  
  26. remote.OnServerEvent:Connect(function(plr, wht, data)
  27.     if plr ~= owner then return end
  28.     if wht == "vol" then
  29.         part.Size = Vector3.new(0.2, data/10, data/10)
  30.         part2.Size = Vector3.new(0.1, data/9, data/9)
  31.     end
  32. end)
  33.  
  34. NLS([[local remote = script.Parent:WaitForChild("test")
  35. local audio = workspace:WaitForChild("Admin_sound")
  36. while true do
  37.     remote:FireServer("vol", audio.PlaybackLoudness)
  38.     wait()
  39. end]], script)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement