A_z, o_O, Reese_McBlox, 1IrnmO0_O0IIILll11, The_Dude

http://www.roblox.com/users/371369/profile

http://www.roblox.com/users/33880094/profile
http://www.roblox.com/users/47020527/profile
http://www.roblox.com/users/60961251/profile

game.Players[“MaxPlayers”]:Kick(“You’re not THAT cool”)

@Usering note the “add any needed checks”.

game.Players[“MaxPlayers”]:Kick(“You’re not THAT cool”):1: attempt to index field ‘MaxPlayers’ (a number value)

for i,v in pairs(game.Players:GetChildren()) do
if v.Name == “MaxPlayers” then
print(“Inefficient but I don’t care”)
end
end

1 Like
print(game.Players:FindFirstChild("MaxPlayers")and"You should be doing this"or'There isn\'t a player here named "MaxPlayers."')
4 Likes

I shouldn’t be doing anything :stuck_out_tongue: The code doesn’t break if it doesn’t find him and I have a way to know if it does lol.

Simply doing

local player = game.Players["PlayerName"]

Will error if “PlayerName” doesn’t exist, you can’t do any checks at that point.

not sure what the point of what you just said is. your code doesn’t break and my code doesn’t break, and the output still exists in any case.

You’re code says I should be doing someth…

nevermind

@Usering

Well aware. To clarify, the point of that post was to say you should be getting the character from the player. I guess it wasn’t that clear.

1 Like

Did you accidentally quote me BadDeveloper? Referencing game.Players wasn’t anywhere in my post. My post was about workspace:FindFirstChild(‘!ship_model’) vs workspace:FindFirstChild’ship_model’ (the one without a symbol could be mistaken for a player if they named themselves ship_model)

I was pointing out that the most efficient way to get a players characters to get it from the player object directly.

Not this month. But… still categorically soon.

2 Likes

Much hype!

Totally not anticipating this update. No, not at all…

waiting for this update like

5 Likes

Totally not going to buy as much original names as I can before they are sniped by bots.

2 Likes

Is this coming soon this year, or soon next year?

It’s been pending some other changes behind the scenes. I’ll make an announcement in the public section with more info.

3 Likes