Advertisement
KlojoSS

Cylox head music [R6]

May 3rd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. -- Edited by Bram1507
  2.  
  3. wait()
  4.  
  5. ---- [[ GUI ]] ----
  6.  
  7. --[[local gui = Instance.new("ScreenGui")
  8. gui.Parent = game.Players.LocalPlayer.PlayerGui
  9. gui.Name = "SingGui"
  10. local frame = Instance.new("Frame")
  11. frame.Parent = gui
  12. frame.Name = "SongID's"
  13. local label1 = Instance.new("TextLabel")
  14. label1.Parent = frame]]--
  15.  
  16. ---- [[ Sound ]] ----
  17.  
  18. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  19. local plr = game.Players.Bram1507
  20. repeat wait() until plr.Character
  21. plr = game.Players.LocalPlayer
  22. char = plr.Character
  23. torso = char.Torso
  24. head = char.Head
  25.  
  26. sound = Instance.new("Sound", head)
  27. sound.SoundId = "rbxassetid://"
  28. sound.Volume = 2
  29. sound:Play()
  30. sound.Looped = true
  31.  
  32. ---- [[ Chat ]] ----
  33.  
  34. plr.Chatted:connect(function(message)
  35. if message:sub(1,4) == "Play" then
  36. sound:Stop()
  37. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  38. sound:Play()
  39. end
  40. end)
  41.  
  42. ---- [[ Cylox ]] ----
  43.  
  44. cylox = Instance.new("Part")
  45. cylox.Parent = game.Workspace
  46. cylox.Name = "Cylox"
  47. cylox.Position = char.Torso.Position
  48. cylox.Anchored = true
  49. cylox.Material = "Neon"
  50. cylox.BrickColor = BrickColor.new("Dark blue")
  51. cylox.Shape = "Cylinder"
  52. cylox.Orientation = Vector3.new(0, 0, 90)
  53. cylox.CanCollide = false
  54.  
  55. game:service'RunService'.RenderStepped:connect(function()
  56. cylox.Size = Vector3.new(2, sound.PlaybackLoudness/50, sound.PlaybackLoudness/50)
  57. cylox.Position = head.Position
  58.  
  59. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement