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

How do I move the GUI without leaving a gap on the top of the screen?

Asked by 4 years ago
Edited 4 years ago
local UserInputService = game:GetService("UserInputService")
local Player = game:GetService("Players").LocalPlayer

UserInputService.InputBegan:Connect(function(Input)
    if Input.KeyCode == Enum.KeyCode.E then
        script.Parent:TweenPosition(
            UDim2.new(0,0,0), -- end position
            "Out", -- easing direction
            "Quart", -- easing style
            0.75,   -- time
            false, -- override?
            nil -- other stuff
        )
    end
end)

Here's the script for the GUI.

0
Wouldn't that not be a problem since roblox made an update with the new cruddy GUI's that don't show that black bar and look like crap. ifreakinlostmyacount 52 — 4y

2 answers

Log in to vote
1
Answered by 4 years ago

If you meant the gap is the top bar, then just turn the ScreenGui's property:IgnoreGuiInset to true.

Documentation:

IgnoreGuiInset

Ad
Log in to vote
0
Answered by 4 years ago

I copied and pasted this from roblox developer hub because I was feeling lazy and didnt want to make a script, here is the code:

local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType., false) --Put the thing you don't want in between the . and the ,

Copy and paste:

local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType., false)

Answer this question