Problems with mobile loading screen but no errors

  1. What do you want to achieve? Loading GUI scripts on module scripts (not using ReplicatedFirst)

  2. What is the issue? My issue is that the textlabel won’t tween from a script that linked to the module script.

  3. What solutions have you tried so far? Looked to see if every variable was connected with the objects and made the sure the script has access to the module script.

local module = {}
local WaitTimes = {HalfProcess = 8, Begin = 3, End = 2}

function module:EnableMobileLoader(enabled)
	if enabled then
		local plr = game.Players.LocalPlayer
		local mobile = plr.PlayerGui.Gui.Background:WaitForChild("Mobile")
		mobile.Frame.Label.Position = UDim2.new(0.485, -210,2.51, -215)
		mobile.Visible = true
	    wait(WaitTimes.Begin)
	   mobile.Frame.Label:TweenPosition(UDim2.new(0.485, -210,2.311, -215), "Out", "Quint", 0.4)
	     wait(WaitTimes.HalfProcess)
	    mobile.Frame.Label:TweenPosition(UDim2.new(0.485, -210,2.51, -215), "Out", "Quint", 0.7)
	   wait(WaitTimes.End)
	     mobile:Destroy()
	end
end


function module:SetMobileScreenSize(size)
	local plr = game.Players.LocalPlayer
	local Front = plr.PlayerGui.Gui.Background:WaitForChild("Front")
	Front:FindFirstChild("UIScale").Scale = size
end


return module

https://gyazo.com/dde20e61f63b854969d05078d75816b1

You’ll see from a localscript there’s no error between anything. I don’t have major reasons but should I write another module for tweening? no?