Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sweat = false
- sus = false
- happy = true
- mad = false
- sad = false
- local clickSound = Instance.new("Sound", owner.Character.Head)
- clickSound.Volume = 2
- clickSound.SoundId = "rbxassetid://7684434684"
- local music = Instance.new("Sound", owner.Character.Head)
- music.SoundId = "rbxassetid://"
- music.Volume = 1
- music.Looped = true
- music:Play()
- owner.Chatted:Connect(function(msg)
- if clickSound.Parent ~= owner.Character.Head and clickSound.Parent ~= NULL then
- clickSound.Parent = owner.Character.Head
- else
- clickSound = Instance.new("Sound", owner.Character.Head)
- clickSound.Volume = 2
- clickSound.SoundId = "rbxassetid://7684434684"
- end
- if music.Parent ~= owner.Character.Head and music.Parent ~= NULL then
- music.Parent = owner.Character.Head
- else
- music = Instance.new("Sound", owner.Character.Head)
- music.SoundId = "rbxassetid://"
- music.Volume = 1
- music.Looped = true
- music:Play()
- end
- if string.lower(msg) == "/e sweat" then
- sweat = true
- sus = false
- happy = false
- mad = false
- sad = false
- elseif string.lower(msg) == "/e happy" then
- sweat = false
- sus = false
- happy = true
- mad = false
- sad = false
- elseif string.lower(msg) == "/e sus" then
- sweat = false
- sus = true
- happy = false
- mad = false
- sad = false
- elseif string.lower(msg) == "/e mad" then
- sweat = false
- sus = false
- happy = false
- mad = true
- sad = false
- elseif string.lower(msg) == "/e sad" then
- sweat = false
- sus = false
- happy = false
- mad = false
- sad = true
- end
- if string.lower(msg) ~= "/e sus" then
- if string.lower(msg) ~= "/e happy" then
- if string.lower(msg) ~= "/e sweat" then
- if string.lower(msg) ~= "/e sad" then
- if string.lower(msg) ~= "/e mad" then
- if string.lower(msg:sub(1,8)) ~= "/e play " then
- local billboard = Instance.new("BillboardGui", owner.character.Head)
- billboard.Adornee = owner.character.Head
- billboard.StudsOffset = Vector3.new(0, 3.5, 0)
- billboard.Size = UDim2.new(18,0,3,0)
- billboard.Name = "chat"
- billboard.MaxDistance = 50
- local tb3 = Instance.new("TextBox", billboard)
- tb3.Size = UDim2.new(1,0,1,0)
- local frame = Instance.new("ImageLabel", billboard)
- frame.BackgroundTransparency = 1
- if sweat then
- frame.Image = "http://www.roblox.com/asset/?id=8135544462"
- elseif sus then
- frame.Image = "http://www.roblox.com/asset/?id=8137468091"
- elseif happy then
- frame.Image = "http://www.roblox.com/asset/?id=8137461397"
- elseif mad then
- frame.Image = "http://www.roblox.com/asset/?id=8137464880"
- elseif sad then
- frame.Image = "http://www.roblox.com/asset/?id=8137466899"
- end
- frame.Size = UDim2.new(0.125,0,1,0)
- local tb = Instance.new("TextBox", billboard)
- tb.Size = UDim2.new(1,0,1,0)
- tb.Position = UDim2.new(0.15,0,0,0)
- tb.TextSize = 25
- tb3.BackgroundColor3 = BrickColor.new("Really black").Color
- tb.TextColor = BrickColor.new("Institutional white")
- tb.Font = "GothamSemibold"
- local tb2 = Instance.new("TextBox", billboard)
- tb2.Size = UDim2.new(50,0,50,0)
- tb2.TextSize = 50
- tb2.Position = UDim2.new(0.15,0,-0.125,0)
- tb2.TextColor = BrickColor.new("Institutional white")
- tb2.BackgroundTransparency = 1
- tb3.Text = ""
- tb2.Font = "Arcade"
- tb2.TextXAlignment = 'Left'
- tb2.TextWrapped = true
- tb2.TextYAlignment = 'Top'
- tb3.BorderColor3 = BrickColor.new("Institutional white").Color
- tb3.BorderSizePixel = 2
- tb.TextXAlignment = 'Left'
- tb.TextWrapped = true
- tb.TextYAlignment = 'Top'
- tb.Name = 'Box'
- tb3.BackgroundTransparency = 0
- tb.BackgroundTransparency = 1
- tb3.ClearTextOnFocus = false
- tb.TextTransparency = 0
- tb.TextEditable = false
- tb.Text = msg
- tb2.Text = "*"
- for i = 1, #msg do
- tb.Text = " "..string.sub(msg,1,i)
- clickSound.PlaybackSpeed = math.random(100, 115)/100
- wait(0.125)
- clickSound:Play()
- end
- tb.Text = " "..msg
- wait(5)
- billboard:Destroy()
- end
- end
- end
- end
- end
- end
- end)
- owner.Chatted:Connect(function(msg)
- if string.lower(msg:sub(1,8)) == "/e play " then
- music:Stop()
- music.SoundId = "http://www.roblox.com/asset/?id="..msg:sub(8)
- music:Play()
- end
- end)
Add Comment
Please, Sign In to add comment