Why is my code not working, whats the problem?

Why is my script not working!!!,

image

Does it print “tweenig” also you have a TweenInfo don’t create a another one for the Tween.

Pretty sure you are tweening the frame within the StarterGui. Instead, try tweening the frame under “PlayerGui”.

how bro??? how would i do that?

its not working, still bro its not tweening

Your code would end up looking something like this, assuming it is a local script:

local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local TeleportingGui = PlayerGui:WaitForChild("tGUi")
local Frame = TeleportingGui:WaitForChild("Frame1")

local Tween = TweenService:Create(Frame, TweenInfo.new(2),{BackgroundTransparency = 0})

wait(4)

Tween:Play()
1 Like
local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("gui name here")
1 Like

how bro how??? how it working now pls explain me…

how bro how??? how it working now pls explain me…

StarterGui plants the gui into the PlayerGui. You can not see the StarterGui when your playing just the PlayerGui.

1 Like

Misread that.

You were trying to tween the frame inside of the starterGui.

1 Like

its working now bro, i just want explanation why it started working?

Probably cuz of the semi-colon ; at the end

It started working because you started to use PlayerGui instead of StarterGui which is responsible for transferring any Gui’s in itself into the PlayerGui when they load into the game.