About 23,000,000 results
Open links in new tab
  1. Defining plr in a serverscript - Scripting Support - Roblox

    Apr 11, 2024 · I am using a serverscript to fire a remoteevent, and I need to define two things: Thristval: a value that is in the player (not in workspace) Plr: what I am using to find the player.

    Missing:

    • Roblox Studio

    Must include:

  2. Variables | Documentation - Roblox Creator Hub

    To create a variable and assign a value to it, use the = operator. Put the variable on the left of the = and the value on the right. If you don't put a value, the value is nil. Variables can have global or local scopes.

    Missing:

    • Roblox Studio

    Must include:

  3. (plr, "something") - Scripting Support - Developer Forum - Roblox

    Apr 8, 2021 · plr.UserId is the key in the datastore, and information is the value. I would recommend reading this 319 if you need help understanding dictionaries and keys/values, because a datastore is pretty much a dictionary. https://education.roblox.com/en-us/resources/multiple-parameters-and-arguments---code-fundamentals 151.

    Missing:

    • Roblox Studio

    Must include:

  4. How Can I Use A Variable As A Location? - Roblox

    May 9, 2020 · PLR is a string you got from the textbox. You can use it in your scripts to find certain objects: If you want to use it as a location, use: Why the brackets? You use the brackets because they are used for indexing, for example, if you have. script will recognize it as “PLR”, whereas if you use.

    Missing:

    • Roblox Studio

    Must include:

  5. How would I make a variable for the player in a Script ... - Roblox

    Jul 17, 2022 · I want to make an if statement that looks like this: if Player.Variable = false then --the variable is a boolvalue stored inside the player --code end for example the variable for a player in a localscript would be: g…

    Missing:

    • Roblox Studio

    Must include:

  6. I am trying to make it so when a model is clicked, you receive ... - Reddit

    Jan 7, 2023 · On line 1, add plr between the parenthesis in function(). It should be: :Connect(function(plr) in line one I would recommend putting game.players.playeradded:connect (function (player) And the just switch plr to player. This post seems to be a little old now, but still.

  7. Creating a Battlegrounds-like Hitbox - Community Tutorials - Roblox

    1 day ago · However, the variable will actually only return us a table full of parts which were caught in the hitbox. Instead, we would like to know the players caught in it. To do that, we create an empty table, then we execute a for loop for the parts variable, where we creating the hitbox. Remember, that variable is only full of parts that was in the ...

    Missing:

    • Roblox Studio

    Must include:

  8. Help with defining a players character - Roblox

    Jan 3, 2023 · You cannot do plr:WaitForChild("Character"), but you can instead do. local Player = game.Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait()

  9. Basic scripting tutorial: variables - Community Tutorials - Roblox

    Dec 16, 2024 · Variables are esential in any programming language, and Luau, the language for Roblox scripting, is no exception. A variable acts as a container for storing information that your program can use later. To declare a variable in Luau, you use the local keyword followed by the variable’s name and an optional value:

    Missing:

    • Roblox Studio

    Must include:

  10. How can I make the leaderstats save? - Scripting Support - Roblox

    3 days ago · Make a folder called DataModel in ServerStorage. Make a folder called leaderstats in DataModel. Put BaseValue objects in leaderstats, such as Kills as a NumberValue. That’s it! The leaderstats will persist with DMOP. Do take note that the version of DMOP I just provided does not re-attempt to load/save player data if that fails.

Refresh