Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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.

1 comment

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.

2 answers

✓ Accepted answer

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

Documentation:

IgnoreGuiInset

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.