|
| 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
|
  |
| 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 |
|
|
|
| 03 Aug 2016 11:11 PM |
i thought it passes the person who clikced it.......... ugh
|
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|