Gui being hidden no matter what I do (possibly tween related)

okay so im reworking my GUI for all scripts to just be inside of one, called “Manager”.
however, whenever i load into the game, all the GUI is invisible - but sounds do play.

what the script below is trying to do is
1st - make logo image visible, then move it to a position out of screen,
2nd - play a sound effect (works), & move logo image to middle of screen,
3rd - move logo image offscreen.

-- Services
local RP = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local WorkSpace = game:GetService("Workspace")
local PlayersService = game:GetService("Players")

local GUI = script.Parent

-- Modules
local TweenHelper = require(script.TweenHelper)

-- Values
local IntroFinished = false

-- Sounds
local SoundEffects = WorkSpace.sfx

-- Logo Popup
local LogoImg = GUI.Logo
print("hi")
LogoImg.Visible = true
	LogoImg:TweenPosition(TweenHelper.introhiddenpos) -- Hide Image
	task.wait(1) -- task.wait For Tween
	SoundEffects.TaDa:Play() -- Play Intro Sound
	LogoImg:TweenPosition(TweenHelper.introshownpos, Enum.EasingDirection.Out, Enum.EasingStyle.Back, 1.5, false)
	task.wait(2)
	LogoImg:TweenPosition(TweenHelper.introendpos, Enum.EasingDirection.In, Enum.EasingStyle.Back, 1.5, false)
	TweenHelper = true
	task.wait(1)
LogoImg.Visible = false

-- Wuntle Pet Manager
local TimesPetText = GUI.serverwuntlepetstext
local TimesPetVal = RP.WuntlePetsVal

while task.wait(0.1) do
	TimesPetText.Text = "wuntle pets: "..TimesPetVal.Value
end

image
image

currently i’ve only started to script the Logo tweening & updating a textlabel with a value, so anything other than “Logo” & “serverwuntlepetstext” i don’t think would be useful to know,

if anything else is needed - please tell me !!

“TweenHelper” script below

local TweenValues = {
	EaseStyle = Enum.EasingStyle.Sine,
	
	introhiddenpos = UDim2.new(-0.5, 0,0.5, 0),
	introshownpos = UDim2.new(0.5, 0,0.5, 0),
	introendpos = UDim2.new(0.5, 0,1.5, 0),
	
	buttonhiddenpos = UDim2.new(0.5, 0,1.5, 0),
	buttonshownpos = UDim2.new(0.5, 0,0.899, 0),
	
	mainframehiddenpos = UDim2.new(0.5, 0,-0.4, 0),
	mainframeshownpos = UDim2.new(0.5, 0,0.5, 0),
	
}

return TweenValues

Try using another type of tweening:

local TweenService = game:GetService("TweenService")
local Gui = path.to.gui
local T = 1 --The tween time
local Style = Enum.EasingStyle.Quad
local Direction = Enum.EasingDirection.Out
local Info = TweenInfo.new(T, Style, Direction)
local Goal = {}

Goal.Position = Udim2.new() --What you like

local Tween = TweenService:Create(Gui, Info, Goal)

Tween:Play()
1 Like

thanks for the reply, but i realised that it was another script that i forgot to disable that was doing this. once again thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.