generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Get player name

Previous Thread :: Next Thread 
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
29 May 2017 03:20 PM
I am trying to make a script that if your player name is MLGnoob4Life it will set a leaderstat rank to Sith emperor how do i do this?
Report Abuse
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
29 May 2017 03:27 PM
bump
Report Abuse
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
29 May 2017 03:30 PM
bump x2
Report Abuse
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
29 May 2017 03:41 PM
BUMP PLZ SOMEONE RPLY
Report Abuse
Kayota is not online. Kayota
Joined: 07 Dec 2011
Total Posts: 550
29 May 2017 03:43 PM
Then upload what you've tried already...
Report Abuse
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
29 May 2017 03:46 PM
i tried: local player = game:GetService("Players").LocalPlayer
if player.Name == "MLGnoob4Life" then
player.leaderstats.Rank.Value = "Sith emperor"
end
Report Abuse
dudefun1234 is not online. dudefun1234
Joined: 21 Jul 2013
Total Posts: 3038
29 May 2017 03:49 PM
is it a local script
Report Abuse
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
29 May 2017 03:51 PM
no
Report Abuse
Kayota is not online. Kayota
Joined: 07 Dec 2011
Total Posts: 550
29 May 2017 03:52 PM
Then why are you using LocalPlayer?
Report Abuse
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
29 May 2017 03:53 PM
so i need to make it a localscript?
Report Abuse
Kayota is not online. Kayota
Joined: 07 Dec 2011
Total Posts: 550
29 May 2017 03:57 PM
game.Players.PlayerAdded:connect(function(player)
if player.Name == "MLGnoob4Life" then
player.leaderstats.Rank.Value = "Sith emperor"
end
end)

Works fine in a regular script. Since it's a server-wide change.
Report Abuse
dudefun1234 is not online. dudefun1234
Joined: 21 Jul 2013
Total Posts: 3038
30 May 2017 06:52 AM
If you don't know the difference in usage between a localscript and a serverscript, I suggest taking on some very basic and simple projects first.

You are definitely not at any level to work for a group, which is what I assume you are doing.
Report Abuse
edenDeden is not online. edenDeden
Joined: 29 Jul 2016
Total Posts: 370
30 May 2017 08:22 AM
in studio u called Player1 so add or player.Name == "Player1" so u could test it in studio


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image