Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you script a custom Welcome to *GAME NAME*. ?

Asked by 6 years ago

Basically something like this: https://gyazo.com/fa70ecc1c4ce94637799e2921cf84f67

I've tried many tutorials and scripts and cannot get it to work.

2 answers

Log in to vote
0
Answered by 6 years ago

Hopefully this helps you out!

--[[
    B1n0ryD3v,
    NOTE: Make sure this is a LocalScript and is placed in StarterGui
--]]

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
    Text = "Welcome to " ..tostring(game.Name) .. "!",
    Color = Color3.new(0, 255 / 255, 255 / 255)
})
Ad
Log in to vote
0
Answered by 6 years ago

You can use the SetCore ChatMakeSystemMessage to display a message in the chat.

Example (needs to be a local script)

local function send(msg)
    game:GetService('StarterGui'):SetCore("ChatMakeSystemMessage",{
        Text = msg,
        Color = Color3.fromRGB(255,249,56),
        Font = Enum.Font.Cartoon
        })
end

while true do
    wait(10)
    send('hi')
end

I hope this helps.

Answer this question