Is it possible to do this?

Is it possible to create an area only for me?
An area where only me can join.

If yes How?

Any Help will be useful!

1 Like

You can do something like this

game.Players.PlayerAdded:Connect(function(plr)
	if plr.Name == "tutizillig" then
		plr.RespawnLocation = game.Workspace.SpawnLocation1
	else
		print("idk")
	end
end)
2 Likes

If you mean that you want an area that only you can be in, I’d recommend using Region3. You can read more about it here. Although, you mind find a video such as this one a little more helpful.

(Sorry for replying to tom. I didn’t mean to lol.)

1 Like

Usernames aren’t reliable because there’s the possibility of them changing. I’d recommend using game.CreatorId.

So:

game:GetService("Players").PlayerAdded:Connect(function(plr)
   if plr.UserId == game.CreatorId
      --Code for the creator
   else
      --Code for any other player
   end
end)
3 Likes

spatial query is better, it allows for much more defined and complex areas
use things like workspace:GetPartBoundsInBox or workspace:GetPartsInPart and look for parts belonging to players