Hi. I am currently working on a project with another developer and we need some way to get the player that’s running the game in studio when you press the Run button. This is so each of us can work on different things and test them individually without interfering with the other person’s work. So I am wondering if there’s anyway to get the player in Run mode. Thank you!
you can simply use client and servers in the test tab in roblox studio simply choose how many player you want and press start you will have the whole server in your hand which you can control the player 1 or player 2
The “Run” button in Studio will run the game with no players, so there is no way to access your player, because it doesn’t exist. Could you explain what you are trying to accomplish more clearly? I’m not sure of a scenario where you would need to access the player while in “Run” mode.
Alternatively, if you are referring to “Play Solo”, you can access the local player via local scripts by doing:
local player = game.Players.LocalPlayer
If you’re on the server, you can just get the first child of players:
local player = game.Players:GetChildren()[1]
You’d have to make sure that a player joined before running that code to be certain that the player was found.
I know about this; but the thing though is that sometimes you need to play in Run mode to see things from a different angle.
So what I a meant is if there was a hacky trick to get the player (or their username at least)in Run mode. I am wondering because we’re thinking of implementation that would allow each developer to run their own individual thing in Run mode without interfering with other developers. So if you play in run mode, the implementation would identify which developer it is, and run their project.
you can actually see them in a different angle just switch to the server tab instead
Ahhhh, I just remembered that you can switch to server mode when play testing.
but I was wondering because, you know, running via the Test tab it takes a while to load, and sometimes you just wanna check something quickly.
Freecam is an ability open to people who have edit access to a game, by pressing Shift + P, you could freecam anywhere around to see everything. You could use that.
Oo, that sounds like it could quite handy
No problem, mark this as a solution so people can know this question is already solved, and find the answer if they have to, thanks.
although its something new, its not quite what I was looking for. So I am not sure if it counts as a solution?