Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
local player = game.Players.LocalPlayer local CreateDialogueEvent = game.ReplicatedStorage.CreateDialogueEvent local DialogueFrame = player.PlayerGui.ScreenGui.Frame local function playSound(sound_id) -- Plays typing sound local sound = Instance.new("Sound",game.ReplicatedStorage) sound.SoundId = sound_id sound.Volume = .1 sound.PlayOnRemove = true sound:Destroy() end local function textAnimate(content) -- Animates each letter for i=1,string.len(content) do DialogueFrame.TextLabel.Text = string.sub(content,1,i) playSound("rbxassetid://915576050") if string.sub(content,i,i) == "!" or string.sub(content,i,i) == "." or string.sub(content,i,i) == "?" then wait(1) elseif string.sub(content,i,i) == "," then wait(.5) else wait(.05) end end end CreateDialogueEvent.OnClientEvent:Connect(function(image_id, content) -- activates when called from the Server if not player:findFirstChild("secretEnding") then DialogueFrame.ImageLabel.Image = image_id DialogueFrame.TextLabel.Text = "" DialogueFrame.Visible = true textAnimate(content) end end)
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)