Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(5)
- local player = owner
- local cha = player.Character
- cha.Humanoid.Health = math.huge
- cha.Humanoid.MaxHealth = math.huge
- 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.Looped = true
- sound.Volume = 5
- local remote = Instance.new("RemoteEvent",cha)
- remote.OnServerEvent:Connect(function(player,value)
- misc.Color = Color3.new(value/math.random(2,5),value/math.random(2,5),value/math.random(2,5))
- light.Color = misc.Color
- end)
- 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
- remote:FireClient(player,"macaroniman",soundid)
- sound:Play()
- elseif msg:sub(1,5) == "/stop" then
- sound:Stop()
- end
- end)
- script.Parent = cha
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement