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

Guis invisible when tweened?

When i try to tween my frame it is invisible when i test it. The frame is visible when i see it not testing in the studio but when i test it is invisible. Here is the code in a localscript(it prints 'hi'). local screengui = game.StarterGui.start

local frame = screengui.Frame

local plr = game.Players.LocalPlayer

local file = game:GetService('ReplicatedStorage').StarFile

wait()

if file[plr.Name].playedBefore.Value == false then

print('hi')

frame:TweenPosition(UDim2.new(0.265, 0,0.09, 0), 'In', 'Linear', 1, false)

end

heres a photo showing that it tweened

[EDIT] So I figured out that when it tweens it doesn't move the gui contents it just changes its size. blue thing is gui

4 comments

0

Make the frame visible

0

frame.Visible = true

0

Ok i will try this when i get home. The reason why i didnt do this in the first place was because it showed that the visible property was checked.

0

Tweening has no effect on visibility unless you put it outside the screen

2 answers

here it will be more simple for u if u dont know where to put in the frame.Visible its all ur script but one tiny change, u can copy paste it

local frame = screengui.Frame

local plr = game.Players.LocalPlayer

local file = game:GetService('ReplicatedStorage').StarFile

wait()

if file[plr.Name].playedBefore.Value == false then

print('hi')

frame.Visible = true

end

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