Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm not able to run this outside of studio. Help me please?

Asked by
Irvene 5
9 years ago

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.

wait(3)

ScreenGui = Instance.new("ScreenGui")

Background = Instance.new("Frame")
Background.ZIndex = 1
Background.Size = UDim2.new( 0, 0, 0, 0)
Background.Position = UDim2.new( 0, 0, 0, 0)
Background.Transparency = 0.5
Background.BackgroundColor3 = Color3.new(72/255,72/255,72/255)

StarterMenu = Instance.new("ScrollingFrame")
StarterMenu.ZIndex = 3
StarterMenu.Size = UDim2.new( 0, 250, 0, 150)
StarterMenu.Position = UDim2.new( 0.5, 0, 0.5, 0)
StarterMenu.Transparency = 0.5
StarterMenu.Visible = false
StarterMenu.BackgroundColor3 = Color3.new(85/255,0/255,0/255)

ImageText = Instance.new("ImageLabel")
ImageText.ZIndex = 3
ImageText.Image = "rbxassetid://51806623"
ImageText.Size = UDim2.new( 0, 100, 0, 100)
ImageText.Transparency = 1
ImageText.BackgroundColor3 = Color3.new(255/255,255/255,255/255)



for i,v in pairs(game.workspace:GetChildren()) do
    if v:findFirstChild("Humanoid") then
    plr = game.Players:GetPlayerFromCharacter(v)
    ScreenGui.Parent = plr.PlayerGui
    Background.Parent = plr.PlayerGui.ScreenGui
    Background:TweenSizeAndPosition(UDim2.new(0, 1000, 0, 1000), UDim2.new( 0, 0, 0, 0), "Out", "Quad", 1)
    wait(2)
    StarterMenu.Parent = plr.PlayerGui.ScreenGui
    StarterMenu.Visible = true
    ImageText.Parent = plr.PlayerGui.ScreenGui.ScrollingFrame
    wait()
    else
    end
end



Answer this question