![]() ![]() ![]() Roblox users create their own virtual worlds and design their own avatars and games. The Players service has a method for correlating a character model with a Player object specifically if a simple name check is not sufficient for your use case. The name Roblox was created by blending the words robots and blocks. the character model name is usually the name of the player so use that An amazing, free platform, Roblox Studio can be used to create customized Roblox objects and games. Local isCharacter = character:FindFirstChild("Humanoid") ~= null It is simply when a player creates a new Roblox account. check that the thing that touched is a character model You can use a popular Roblox technique called Name sniping to generate a rare or unique username. Target.Touched:Connect( function(otherPart) You can use that to check if the other part belongs to a player's character model. The Touched event on a Part gives you access to the other object that touched it. You need to access the Player object a different way. For the server (on which Script objects run their code), this property is nil. This property is only defined for LocalScripts. Your problem is that the LocalPlayer doesn't exist where you're trying to use it from. It can fetch information about players not connected to the server, such as character appearances, friends, and avatar thumbnail. It also contains information about a places configuration. ![]() The answer to your question, "can I use a player's name in an if-statement" is yes. The name Roblox comes from combining the words robots and blocks. The Players service contains Player objects for presently connected clients to a Roblox server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |