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

The server chat doesn't repeat itself, and the face changer script doesn't work either, why?

Asked by 7 years ago

So whenever I'm trying to repeat the server actions, it doesn't work anymore, even if I added while true do. Script:

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

And second, I have added a Face-Changer that whenever you click on it, it changes your fast, but for some reason when I'm clicking on it, it doesn't work. (The face is on the block). **NOTE: I have added everything needed, the sound and the decal. **

local head = script.Parent
local sound = head:findFirstChild("Victory")

function onClicked(part)
    local h = part.Parent:findFirstChild("Humanoid")
    if h~=nil then
sound:play()
if part.Parent:findFirstChild("Head"):findFirstChild("face").Texture == nil then return end
part.Parent:findFirstChild("Head"):findFirstChild("face").Texture=script.Parent.Decal.Texture
    end
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

0
Very sad that this question was asked 1 year ago and never answered D: OBenjOne 190 — 6y

Answer this question