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

How would I get the game owner name for the game?

Asked by 4 years ago

I am trying to figure out how to get a place owner name from a game, instead of the owner ID. Is there a web API for this or something similar, or a roblox in-built function? Note: I am not asking for code, just asking if there is a function for this or a webapi for this

Note: I am pretty sure a bot removed my old question for a false flagging or whatever, so I am rewording my question so it doesn't get detected.

1 answer

Log in to vote
0
Answered by
bailley5 114
4 years ago

Pretty sure there isn't a function neither a webapi but I do have a piece of code you could use, it basically looks for the player name and if the player name is who ever's name you put in it will print Owner Joined, but you can modify it to have a owner name tag in the chat or something just an example. If you do use this then put it in ServerScriptService.

wait(0.3)

local playername = game.Players.LocalPlayer.Name

if playername == "Your or someone else's name." then
print("Owner Joined!")
end

You can modify the rest if you want.

0
No, I know it's possible as I have seen it before. It might be a 3rd party program User#31709 0 — 4y
0
Sorry for the late accepting answer. I couldn't find an API but your answer works! User#31709 0 — 3y
Ad

Answer this question