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 » Roblox » BLOXFaires & ROBLOX events
Home Search
 

Re: Simple Problem

Previous Thread :: Next Thread 
buildmodel is not online. buildmodel
Joined: 17 Jul 2012
Total Posts: 3778
24 Jul 2017 03:11 PM
I got an error attempt to index local 'player' (a number value)
I am trying to get the player name to show up on the Gui.
What did I do wrong?

-----

wait(1)

local player = game.Players.LocalPlayer
local Player1Frame = script.Parent.Parent.PlayerListFrame.Player1Frame
local Player2Frame = script.Parent.Parent.PlayerListFrame.Player2Frame


script.Parent.MouseButton1Down:connect(function (player)

if Player1Frame.TextButton.Text == " " or Player1Frame.TextButton.Text == "" or
Player1Frame.TextButton.Text == nil then
Player1Frame.TextButton.Text = player.Name -- ERROR RIGHT HERE!
end

end)


Report Abuse
buildmodel is not online. buildmodel
Joined: 17 Jul 2012
Total Posts: 3778
24 Jul 2017 03:12 PM
Its in Local script in StarterGui


Report Abuse
buildmodel is not online. buildmodel
Joined: 17 Jul 2012
Total Posts: 3778
24 Jul 2017 03:18 PM
Found my problem!


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » BLOXFaires & ROBLOX events
   
 
   
  • 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