GUI won't change it's size

Hello everyone! I want to make my GUI change it’s size whenever GoingToHackerLand = true, but for some reason, it won’t work

GoingToHackerLand Activator LocalScript

	yes2.MouseButton1Up:Connect(function()
	dialog.Text = "Hacker: >:( DIE"
	local tele = game.Workspace.BaconTown.HackerTele1
	tele.Touched:Connect(function(hit)
		local humanoid = hit.Parent:FindFirstChild("Humanoid")
		if humanoid ~= nil then
			hit.Parent.HumanoidRootPart.CFrame = CFrame.new(game.Workspace.HackerLand["HackerTele2"].Position)
			local otherTele = game.Workspace.HackerLand.HackerTele2
			otherTele:Destroy()
			script.Parent.Parent.Parent.HackerLandOpeningScreen.GoingToHackerLand.Value = true --Makes GoingToHackerLand true
		end
	end)

Gui LocalScript:

local goingToHackerLand = script.Parent.GoingToHackerLand
local openingScreen = script.Parent.OpeningScreen
local players = game:GetService("Players")
local char = players.LocalPlayer.Character

if goingToHackerLand.Value == true then
    wait(0.8)
    openingScreen.Visible = true
    char.Humanoid.WalkSpeed = 0
    char.Humanoid.JumpPower = 0

    openingScreen:TweenSize(
	    UDim2.new(0, 1504, 0, 767),
	    "Out",
	    "Quad",
	    0.5,
	    false
    )
    wait(1)
    openingScreen:TweenSize(
	    UDim2.new(0, 1504, 0, 5),
	     "Out",
	     "Quad",
	     0.5,
	     false
    )
    wait(0.8)
    char.Humanoid.WalkSpeed = 16
    char.Humanoid.JumpPower = 50

    goingToHackerLand.Value = false
end

Please let me know if you know how to solve this! Thanks!

2 Likes

Nevermind I made a Instance.new() :sweat_smile:

2 Likes