Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.antoniorigo4 --yo dudes we havent seen eachother in a long time
- local cha = player.Character
- local hatmod = Instance.new("Model",cha)
- local main = Instance.new("Part",hatmod)
- local top = Instance.new("Part",hatmod)
- local misc = Instance.new("Part",hatmod)
- main.Size = Vector3.new(0.5, 3, 3)
- top.Size = Vector3.new(2, 2, 2)
- misc.Size = Vector3.new(0.558, 2.03, 3.045)
- local maintopw = Instance.new("Motor6D",hatmod)
- local topmiscw = Instance.new("Motor6D",hatmod)
- maintopw.Part0 = main
- maintopw.Part1 = top
- topmiscw.Part0 = top
- topmiscw.Part1 = misc
- maintopw.C1 = CFrame.new(1,0,0)
- topmiscw.C1 = CFrame.new(0.3,0,0)
- main.Shape = "Cylinder"
- top.Shape = "Cylinder"
- misc.Shape = "Cylinder"
- local headweld = Instance.new("Weld",main)
- headweld.Part0 = cha.Head
- headweld.Part1 = main
- headweld.C1 = CFrame.new(0.75,0,0) *CFrame.Angles(0,0,math.rad(90))
- main.BrickColor = BrickColor.Black()
- top.BrickColor = BrickColor.Black()
- local light = Instance.new("PointLight",misc)
- light.Brightness = 90
- light.Range = 8
- --this is where the real party starts
- local sound = Instance.new("Sound",cha.Head)
- sound.Volume = 5
- 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)
- --where the party ends :(
- local colormisc = coroutine.create(function()
- while true do wait()
- for i = 20,255 do wait()
- misc.Color = Color3.fromHSV(0,0,i)
- light.Color = misc.Color
- end
- end
- end)
- coroutine.resume(colormisc)
- print("Hello world!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement