Im Trying to Have The gui Be a certain size when i press it and go down when i stop pressing but it wont change the size
local player = game.Players.LocalPlayer
local uis = game:GetService("UserInputService")
local gui = game.StarterGui:WaitForChild("ScreenGui")
uis.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
gui.Frame = UDim2.new(10, 10, 10, 10)
print("Down")
end
end)
uis.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
gui.Frame = UDim2.new(0, 0, 0, 0)
print("UP")
end
end)

3 comments
that doesn't do anything. Is it maybe because im using a local script?
Its suppose to be in a local script
Are there any errors?