how can i change studs offset for cloned billboard gui?
im making custom overhead gui and everything is fine but i get an error that says
Y cannot be assigned to
and i dont know why
(line 20)
01 | local gui = game:GetService( "ServerStorage" ):WaitForChild( "OverheadGui" ) |
03 | game.Players.PlayerAdded:Connect( function (player) |
05 | local leaderstats = player:WaitForChild( "leaderstats" ) |
06 | local hTime = leaderstats:WaitForChild( "Highscore" ) |
07 | local Time = leaderstats:WaitForChild( "Time" ) |
09 | player.CharacterAdded:Connect( function (character) |
12 | local clonedNameTag = gui:Clone() |
13 | clonedNameTag.TextLabel.Text = player.Name |
14 | clonedNameTag.Parent = game.Workspace:WaitForChild(player.Name).Head |
15 | clonedNameTag.StudsOffset.Y = 2.5 |
18 | local clonedHiTime = gui:Clone() |
19 | clonedHiTime.Parent = game.Workspace:WaitForChild(player.Name).Head |
20 | clonedHiTime.StudsOffset.Y = 5 |
22 | clonedHiTime.TextLabel.Text = hTime |
24 | hTime.Changed:Connect( function () |
25 | clonedHiTime.TextLabel.Text = hTime |