I'm not able to run this outside of studio. Help me please?
So I tried filtering enabled, this is a gamescript it's not supposed to be in starterpack, or it'd run as much as the number of players there are in the game, since it's local to every player.
It just doesn't run, and it won't insert the GUIs into the players.
03 | ScreenGui = Instance.new( "ScreenGui" ) |
05 | Background = Instance.new( "Frame" ) |
07 | Background.Size = UDim 2. new( 0 , 0 , 0 , 0 ) |
08 | Background.Position = UDim 2. new( 0 , 0 , 0 , 0 ) |
09 | Background.Transparency = 0.5 |
10 | Background.BackgroundColor 3 = Color 3. new( 72 / 255 , 72 / 255 , 72 / 255 ) |
12 | StarterMenu = Instance.new( "ScrollingFrame" ) |
14 | StarterMenu.Size = UDim 2. new( 0 , 250 , 0 , 150 ) |
15 | StarterMenu.Position = UDim 2. new( 0.5 , 0 , 0.5 , 0 ) |
16 | StarterMenu.Transparency = 0.5 |
17 | StarterMenu.Visible = false |
18 | StarterMenu.BackgroundColor 3 = Color 3. new( 85 / 255 , 0 / 255 , 0 / 255 ) |
20 | ImageText = Instance.new( "ImageLabel" ) |
23 | ImageText.Size = UDim 2. new( 0 , 100 , 0 , 100 ) |
24 | ImageText.Transparency = 1 |
25 | ImageText.BackgroundColor 3 = Color 3. new( 255 / 255 , 255 / 255 , 255 / 255 ) |
29 | for i,v in pairs (game.workspace:GetChildren()) do |
30 | if v:findFirstChild( "Humanoid" ) then |
31 | plr = game.Players:GetPlayerFromCharacter(v) |
32 | ScreenGui.Parent = plr.PlayerGui |
33 | Background.Parent = plr.PlayerGui.ScreenGui |
34 | Background:TweenSizeAndPosition(UDim 2. new( 0 , 1000 , 0 , 1000 ), UDim 2. new( 0 , 0 , 0 , 0 ), "Out" , "Quad" , 1 ) |
36 | StarterMenu.Parent = plr.PlayerGui.ScreenGui |
37 | StarterMenu.Visible = true |
38 | ImageText.Parent = plr.PlayerGui.ScreenGui.ScrollingFrame |