Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- runservice = game:GetService("RunService")
- music = Instance.new("Sound", owner.Character.Torso)
- music.Volume = 1.75
- music.Looped = true
- local clickSound = Instance.new("Sound", owner.Character.Head)
- clickSound.Volume = 2
- clickSound.SoundId = "rbxassetid://4724430129"
- owner.Chatted:connect(function(butwhathechatted)
- if owner.character.Head:findFirstChild("chat") then
- owner.character.Head:findFirstChild("chat"):destroy()
- end
- local chatopen = Instance.new("Sound", owner.Character.Head)
- chatopen.Volume = 1
- chatopen.SoundId = "rbxassetid://1293432625"
- chatopen:play()
- local chatclose = Instance.new("Sound", owner.Character.Head)
- chatclose.Volume = 1
- chatclose.SoundId = "rbxassetid://1293432192"
- local billboard = Instance.new("BillboardGui", owner.character.Head)
- billboard.Adornee = owner.character.Head
- billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
- billboard.Size = UDim2.new(2,0,1,0)
- billboard.Name = "chat"
- local text = Instance.new("TextBox", billboard)
- text.BackgroundTransparency = 1
- text.TextStrokeTransparency = 0
- text.TextSize = 25
- text.TextStrokeColor3 = Color3.fromRGB(0,0,0)
- text.Size = billboard.Size
- text.Font = "Arcade"
- text.TextColor3 = Color3.fromRGB(245, 205, 48)
- text.Text = butwhathechatted
- for i = 1, #butwhathechatted do
- text.Text = string.sub(butwhathechatted,1,i)
- clickSound.PlaybackSpeed = math.random(70, 185)/100
- wait(0.125)
- clickSound:Play()
- end
- text.Text = butwhathechatted
- coroutine.wrap(function()
- wait(3)
- for i = 1,50 do
- billboard.StudsOffset = billboard.StudsOffset - Vector3.new(0,-0.01,0)
- text.TextTransparency = text.TextTransparency + 0.02
- text.TextStrokeTransparency = text.TextStrokeTransparency + 0.02
- runservice.Stepped:wait()
- end
- billboard:destroy()
- chatclose:play()
- end)()
- end)
- owner.Chatted:Connect(function(musicchange)
- if musicchange == "-music1" then
- music:Stop()
- music.SoundId = "rbxassetid://567129571"
- music:Play()
- elseif musicchange == "-music2" then
- music:Stop()
- music.SoundId = "rbxassetid://481096455"
- music:Play()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement