Here’s the rundown,
My ui updates the build and version i’m on, it updates the build just fine but it will only update my place verison from 1.0.0 to 1.0.1 and anytime my build updates so should my version but it won’t update past 1.0.1.
Script:
local textLabel = script.Parent
textLabel.Font = Enum.Font.TitilliumWeb
textLabel.TextColor3 = Color3.new(1, 1, 1)
textLabel.TextSize = 50
textLabel.BackgroundTransparency = 1
textLabel.TextTransparency = 0.75
local versionTextLabel = Instance.new("TextLabel")
versionTextLabel.Font = Enum.Font.TitilliumWeb
versionTextLabel.TextColor3 = Color3.new(1, 1, 1)
versionTextLabel.TextSize = 30
versionTextLabel.BackgroundTransparency = 1
versionTextLabel.TextTransparency = 0.75
versionTextLabel.AnchorPoint = Vector2.new(0.5, 1)
versionTextLabel.Position = UDim2.new(0.5, 0, 1, 0)
versionTextLabel.Parent = textLabel
local version = "1.0.0"
local function updateTextLabel(version)
textLabel.Text = "UPE Build " .. version
end
local function updateVersionTextLabel()
if game:GetService("RunService"):IsStudio() then
version = "0.0.0"
else
local major, minor, patch = version:match("(%d+)%.(%d+)%.(%d+)")
if patch == "9" then
version = major .. "." .. tostring(tonumber(minor) + 1) .. ".0"
else
version = major .. "." .. minor .. "." .. tostring(tonumber(patch) + 1)
end
end
versionTextLabel.Text = "Version ALPHA " .. version
end
local function checkPlaceVersionChange()
if game.PlaceVersion ~= version then
version = game.PlaceVersion
updateTextLabel(version)
updateVersionTextLabel()
end
end
updateTextLabel(game.PlaceVersion)
updateVersionTextLabel()
textLabel.AnchorPoint = Vector2.new(0.5, 1)
textLabel.Position = UDim2.new(0.5, 0, 1, -30)
game:GetService("RunService").Heartbeat:Connect(checkPlaceVersionChange)
Path: