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 StarterGui = game:GetService("StarterGui") local player = game.Players.LocalPlayer local BroadCastedMessage = game.ReplicatedStorage.DialogueRemotes:WaitForChild("BroadCastMessage") local SetMessageSpeaker = game.ReplicatedStorage.DialogueRemotes:WaitForChild("SetMessageSpeaker") local HideDialogueEvent = game.ReplicatedStorage.DialogueRemotes:WaitForChild("HideMessageSpeaker") local DialogueFrame = player.PlayerGui.DialogueGui.DialogueFrame local TextFrame = script.Parent.DialogueFrame.TextFrame local RichText = require(game.ReplicatedStorage.Modules:WaitForChild("RichText")) HideDialogueEvent.OnClientEvent:Connect(function() StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true) DialogueFrame.Visible = false end) BroadCastedMessage.OnClientEvent:Connect(function(english,spanish) -- activates when called from the Server if not player:findFirstChild("secretEnding") then if DialogueFrame.Visible == true then StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) DialogueFrame.Visible = true end local ln = game:GetService("LocalizationService").RobloxLocaleId local content = english if ln == "en-us" then content = english elseif ln == "es-es" then if spanish then content = spanish end end local TextFrame = RichText:New(TextFrame, content) TextFrame:Animate(true) DialogueFrame.Visible = true script.Click:Play() end end) SetMessageSpeaker.OnClientEvent:Connect(function(name, image_id) if not player:findFirstChild("secretEnding") then DialogueFrame.ImageLabel.Image = image_id DialogueFrame.nameLabel.Text = name 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)