You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I am attempting to add 0.06 to a gui’s Y scale when it’s cloned.
I’m not sure why, but the number just doesn’t change (I’ve tested with 4 different players and still the same result)
-
What is the issue? Include screenshots / videos if possible!
Like stated above the numbers wont add. Maybe there is an equation error but I thought I was doing it right. Maybe something changed -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve printed what I wanted to happen but it dosen’t function in the script
here’s the script
local Players = game:GetService("Players")
local LbGui = game.ReplicatedStorage.Leaderboard
local pos = 0
local posnum = 0
Players.PlayerAdded:Connect(function(player)
local userId = player.UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
local lbclone = LbGui.Mainframe.LeaderboardDisplay.Userinfobar:Clone()
lbclone.Name = player.Name
lbclone.NameLabel.Text = player.Name .. posnum
print(player.Name)
print(lbclone.NameLabel.Text)
lbclone.ProfileImageLabel.Image = content
lbclone.Parent = LbGui.Mainframe.LeaderboardDisplay
lbclone.Position = UDim2.new(0,0,pos,0)
lbclone.Visible = true
local pos = pos + 0.06
print(pos)
print(pos + 0.06)
local posnum = posnum + 1
print(lbclone.Parent)
print("finished")
end)