how to make a owner joined script code example
Example: how to make a owner joined script
--Creator Announcer script by JUB0T.
function OnPlayerEntered(player)
if player.userId == game.CreatorId then
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "The creator has joined the server!"
wait(2)
msg:remove()
elseif player:IsFriendsWith(game.CreatorId) then
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "A friend of the creator has joined the server!"
wait(2)
msg:remove()
elseif player:IsBestFriendsWith(game.CreatorId) then
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "A best friend of the creator has joined the server!"
wait(2)
msg:remove()
elseif player.Name == "JUB0T" then --Change "JUB0T" with Your Username
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "A ROBLOX admin has joined this server!" --Just somethin' neat.
wait(2)
msg:remove()
end
end
game.Players.ChildAdded:connect(OnPlayerEntered) --Script By Rigby#9052 on Discord