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

how can i change studs offset for cloned billboard gui?

Asked by 5 years ago

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)

01local gui = game:GetService("ServerStorage"):WaitForChild("OverheadGui")
02 
03game.Players.PlayerAdded:Connect(function(player)
04 
05    local leaderstats = player:WaitForChild("leaderstats")
06    local hTime = leaderstats:WaitForChild("Highscore")
07    local Time = leaderstats:WaitForChild("Time")
08 
09    player.CharacterAdded:Connect(function(character)
10 
11        --NAME TAG
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
View all 30 lines...

1 answer

Log in to vote
1
Answered by 5 years ago

Maybe try this

1clonedHiTime.StudsOffset = Vector3.new(0,5,0)
0
that works thanks Fr0stPh3onix 79 — 5y
Ad

Answer this question