Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Topbar transparency not changing??

Asked by
joshxie 25
5 years ago

Currently, I am making a custom topbar w/ contents inside it, and to achieve that, I need to make the default topbar transparent. But when I use the function SetTopbarTransparency(), it doesn't do anything. The topbar's transparency doesn't even change :p. Here is the code:

--< Variables
local customTopbar = script.Parent:WaitForChild("CustomTopbar")
local versionNumberGui = customTopbar:WaitForChild("VersionNumber")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemotesFolder = ReplicatedStorage:WaitForChild("Remotes")
local GetServerVersion = RemotesFolder:WaitForChild("GetServerVersion")
local playerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
local serverVersion = GetServerVersion:InvokeServer()

--< Events
playerGui:SetTopbarTransparency(1)  -- this doesn't even do anything
versionNumberGui.Text = 'patch 0.'..serverVersion
0
nevermind lol, hd admin made it's own topbar :p.. my mistake!!! joshxie 25 — 5y

1 answer

Log in to vote
0
Answered by
Y_VRN 246 Moderation Voter
5 years ago

Even though you seem to have found your own solution, you could still make the topbar invisible using this:

game.StarterGui:SetCore('TopbarEnabled',false)
0
that wouldn't stop hd admin from creating another topbar ;p joshxie 25 — 5y
Ad

Answer this question