GroupTransparency doesn't play outside of Roblox Studio

Hello developers!

I was working on tweening GroupTransparency and I ran into a problem when testing the game outside of studio. On Roblox the tween doesn’t happen. But when I test it on studio it works. There are videos showing my problem. If anybody can help that would be greatly appreciated!


Not on studio


On studio


Local script inside of Screen Gui. Screen Gui is a child of StarterGui

-- Service
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local StarterGui = game:GetService("StarterGui")

local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui") -- Getting PlayerGui
--
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
--
local LoadingScreen = script.Parent
LoadingScreen.Enabled = true

local Image = LoadingScreen.CanvasGroup.Background.Main.ImageLabel
-- Tween
local Tween = TweenService:Create(Image, TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1), {Rotation = 360})
Tween:Play()

local FishedLoading = TweenService:Create(script.Parent.CanvasGroup, TweenInfo.new(2), {GroupTransparency = 1})
--
task.wait(3)
if not game.Loaded then
	game.Loaded:Wait()
end
FishedLoading:Play()
FishedLoading.Completed:Wait()
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
LoadingScreen:Destroy()

CanvasGroups are in beta and don’t work outside of studio.

3 Likes