A new function that does more with WritePlayer to create fake players in the DataModel for testing

As a Roblox developer, it is currently too hard to test things that have to do with Player Instances.

For the specific thing that I wanted to test, I needed a Player that is either named “Player” or “Player1”, and another player that is named “Player11”

Unfortunately, you can only create 8 Players through the “Clients and Servers” tab. Even then, it wouldn’t be an ideal solution, because the PC would freak out from a lot of Roblox Window instances. It is also unideal.

What sounds more ideal, is for the Local Player to be able to switch their own Player instance, in Studio only.

 
I wanted to test something in Adonis Admin System. Regarding “Player Selectors”. Because if there’s multiple players e.g. named “User1” and “User2”.

When you type “User”, it would select “User1” and “User2”.

But what if the “User” is named “User”?

I had no way to test this, because I can’t even modify Player Names. Until I found out I just have to enable the Console window to get a player that is named “Player” and “Player1”, but it’s still a bit unideal.

I agree, analyzing the source code from whatever I wanted to debug on, wouldn’t be bad. But the specific problems that can occur to any other developers can still be big, and they’d end up having no solution for it.

 

If this issue is addressed, it would improve my development experience because it would simplify everything that is related to testing Player Instances things.

Below is a detailed description


This here, doesn’t help me. Plus, by default when you “Run Game”. You can switch from Local to Server. Why can’t we have the ability to switch to Server and Local1,2,3,4,5? Or something???
image

 

I ask for a new feature… Like really…

I want to be able to create fake player instances that are part of the “Player” Class. Being able to modify their Name and etc.

Currently, the only thing you can do is game.Players:CreateLocalPlayer() If you run this on the server, you create a Player for the server. Any LocalScript for the “Server’s Player Instance” acts like a Script. That’s the funny and interesting part.

 

When you try to modify things from a Player, you will get this Error.

The current thread cannot set 'Player's name' (lacking capability WritePlayer)

Maybe with a hacky way, there’s a possibility to create a Player Instance for the purpose of testing in Studio.

But other than that, I don’t see any way, to achieve that what I wanted.

 

Once it was possible to specify the UserID and etc. for CreateLocalPlayer(), but that’s gone. I’d see why, maybe that was a bad security thing that even landed up into the Roblox Client.

But I am just asking, for something that will only exist in Roblox Studio.


image

A Roblox Staff Team, should really focus on enhancing this or something. To spawn in fake players. (Only while the game is running). Because when you create a player and delete it, you can’t create it again, it’s still there somewhere.

Please… Roblox…

30 Likes

i think this would be really useful