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

Why doesnt my chat notification pop up?

Asked by 7 years ago

This script was meant to make the message "hi!!! (Player Name)" pop up in the chat whenever a player joins up, but for some reason it doesnt... Where did I fail

waitTime=15
function playerEntered(Player)
if Player ~= nil then
game.StarterGui:SetCore("ChatMakeSystemMessage", {
        Text = "Hii!!!" ..Player.Name.. "",
        Color = Color3.new(0, 1, 1),
        Font = Enum.Font.Arial,
        FontSize = Enum.FontSize.Size24,
    })
wait(waitTime)
end
end
game.Players.ChildAdded:connect(playerEntered)
0
SetCore only works in LocalScripts M39a9am3R 3210 — 7y
0
First off, doesn't make sense for you to use game.Players.ChildAdded when there's a PlayerAdded event. Second off, if this is a local script it will run locally and you can use game.Players.LocalPlayer. AstrealDev 728 — 7y

Answer this question