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

How do I make the script stop once it chats all the messages?

Asked by 5 years ago
player = game.Players.LocalPlayer

while true do
wait (90)

local StarterGui = game:GetService("StarterGui") -- Make sure this LOCAL SCRIPT is in StarterGui!
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = "[Server]: Hello, and welcome to DemureĀ® Runway!"; -- Required. Has to be a string!
    Color = Color3.new(0,128,0); -- Cyan is (0,255/255,255/255) -- Optional defaults to white: Color3.new(255/255, 255/255, 243/255)
    Font = Enum.Font.SourceSansBold; -- Optional, defaults to Enum.Font.SourceSansBold

})

while true do
wait(120)

local StarterGui = game:GetService("StarterGui") -- Make sure this LOCAL SCRIPT is in StarterGui!
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = "[Server]: Join our group if you'd like to go through amazing experience!"; -- Required. Has to be a string!
    Color = Color3.new(0,128,0); -- Cyan is (0,255/255,255/255) -- Optional defaults to white: Color3.new(255/255, 255/255, 243/255)
    Font = Enum.Font.SourceSansBold; -- Optional, defaults to Enum.Font.SourceSansBold


})

while true do
wait(70)

local StarterGui = game:GetService("StarterGui") -- Make sure this LOCAL SCRIPT is in StarterGui!
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = "[Server]: If your catalog gets broken, be sure to spam click the 'R' button in the catalog."; -- Required. Has to be a string!
    Color = Color3.new(0,128,0); -- Cyan is (0,255/255,255/255) -- Optional defaults to white: Color3.new(255/255, 255/255, 243/255)
    Font = Enum.Font.SourceSansBold; -- Optional, defaults to Enum.Font.SourceSansBold


})

while true do
wait(100)

local StarterGui = game:GetService("StarterGui") -- Make sure this LOCAL SCRIPT is in StarterGui!
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = "[Server]: If you'd like to refresh, say 'refresh', or 'refresh me'."; -- Required. Has to be a string!
    Color = Color3.new(0,128,0); -- Cyan is (0,255/255,255/255) -- Optional defaults to white: Color3.new(255/255, 255/255, 243/255)
    Font = Enum.Font.SourceSansBold; -- Optional, defaults to Enum.Font.SourceSansBold


})

while true do
wait(20)

local StarterGui = game:GetService("StarterGui") -- Make sure this LOCAL SCRIPT is in StarterGui!
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = "[Server]: If you find any bugs/glitches, make sure to contact Ber_ries as soon as possible."; -- Required. Has to be a string!
    Color = Color3.new(0,128,0); -- Cyan is (0,255/255,255/255) -- Optional defaults to white: Color3.new(255/255, 255/255, 243/255)
    Font = Enum.Font.SourceSansBold; -- Optional, defaults to Enum.Font.SourceSansBold

})

local levelevent 
levelevent.Event:connect(function()
        local StarterGui = game:GetService("StarterGui") -- Make sure this LOCAL SCRIPT is in StarterGui!
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = " "..player.Name.." has level up!"; -- Required. Has to be a string!
    Color = Color3.new(1,1,1); -- Cyan is (0,255/255,255/255) -- Optional defaults to white: Color3.new(255/255, 255/255, 243/255)
    Font = Enum.Font.SourceSans; -- Optional, defaults to Enum.Font.SourceSansBold

})

end)
    end
        end
            end
                end
                    end

Basically, this scripts works perfectly. But once it's done saying all the messages, it's repeating them and I don't want it to repeat it.

0
You are using loops maumaumaumaumaumau 98 — 5y
0
Use wait() instead if you want all messages minus levelevent be ran once maumaumaumaumaumau 98 — 5y
0
This isn't your code. User#19524 175 — 5y
0
does it matter maumaumaumaumaumau 98 — 5y
View all comments (4 more)
0
It does, all attempts should be of own work User#19524 175 — 5y
0
so Ber_ries copied that right? maumaumaumaumaumau 98 — 5y
0
Yes. You can tell from the comments. User#19524 175 — 5y
0
The only thing she copied was the chatmakesystemmessage which is on the wiki. Also get rid off the 'while true do's' in there ber_ries if you don't want it repeated. xEiffel 280 — 5y

Answer this question