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: help

Previous Thread :: Next Thread 
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
03 Aug 2016 11:06 PM
I cant figure out how to fix this, can someone help please...?



script:

Button = game.Workspace.PlaceIdScreen.Screen.SurfaceGui.Frame.TextButton
local Admins = {15295651,-1}

Button.MouseButton1Down:connect(function(player)
for _,v in ipairs(Admins) do
if player.UserId == v then
game.Players.LocalPlayer.PlayerGui.EnterThePlaceID.Frame.Visible = true
end
end
end)

Outputs:


00:04:45.438 - Players.stephenthefox.PlayerGui.LocalScript:6: attempt to index local 'player' (a number value)
00:04:45.439 - Stack Begin
00:04:45.440 - Script 'Players.stephenthefox.PlayerGui.LocalScript', Line 6
00:04:45.441 - Stack End




Report Abuse
lululukas is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
03 Aug 2016 11:09 PM
MouseButton1Down does not pass any arguments/parameters


R$10,709
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
03 Aug 2016 11:11 PM
i thought it passes the person who clikced it.......... ugh


Report Abuse
lululukas is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
03 Aug 2016 11:13 PM
you're thinking of MouseClick which only works with ClickDetector


R$10,709
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
03 Aug 2016 11:14 PM
Thanks...


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