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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I'm new to scripting would my script work

Previous Thread :: Next Thread 
SpendMyLOLCat is not online. SpendMyLOLCat
Joined: 12 Sep 2012
Total Posts: 624
09 May 2014 06:15 PM
Would this print my username?

local function print_username()
Usernamevarible = "local.username"
print(Usernamev)
end

print_username()

If not, can any of you tell me how to fix it?
Report Abuse
SpendMyLOLCat is not online. SpendMyLOLCat
Joined: 12 Sep 2012
Total Posts: 624
09 May 2014 06:15 PM
print(Usernamevarible)*******
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
10 May 2014 06:55 AM
No it won't work.
Report Abuse
youssef04 is not online. youssef04
Joined: 22 Jan 2011
Total Posts: 1745
10 May 2014 06:57 AM
function username()
plr = game.Players.LocalPlayer
print(plr.Name)
end)
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
10 May 2014 07:45 AM
@Above,

It's supposed to be a Localscript in order to work in online mode.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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