01 | local door = script.Parent |
02 |
03 | --//Main Event |
04 | door.ClickDetector.mouseClick:connect( function () |
05 | for i,v in pairs (game:GetPlayers()) do |
06 | v.PlayerGui.Objectives.LockedText.Visible = true |
07 | wait( 5 ) |
08 | v.PlayerGui.Objectives.LockedText.Visible = false |
09 | end |
10 | end ) |
For some reason this script doesn't work? I always get this error that says, 'GetPlayers is not a valid member of DataModel'. Can somebody please help me?
01 | local door = script.Parent |
02 |
03 | --//Main Event |
04 | door.ClickDetector.mouseClick:connect( function () |
05 | for i,v in pairs (game.Players:GetChildren()) do |
06 | v.PlayerGui.Objectives.LockedText.Visible = true |
07 | wait( 5 ) |
08 | v.PlayerGui.Objectives.LockedText.Visible = false |
09 | end |
10 | end ) |
Try this