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

I am having trouble when making a script with billboard guis?

Asked by 8 years ago

I am trying to make a script that spawns a billboardgui with an asset on me and then it grows and shrinks. Here is my code.

01local BillBoardGUI = game.ReplicatedStorage.Assets.BillboardGui
02 
03script.Parent.Touched:connect(function()
04while wait(0) do
05    local newBillBoardGUI = BillBoardGUI:Clone()
06    newBillBoardGUI.Name = "BillboardGui"
07    newBillBoardGUI.Parent = game.Workspace
08    newBillBoardGUI:MakeJoints()
09    newBillBoardGui:MoveTo(Players.DF_Zhang.Head.Position)
10end
11local ImageLabel = game.ReplicatedStorage.Assets.ImageLabel
12 
13script.Parent.Touched:connect(function()
14    local newImageLabel - ImageLabel:Clone()
15    newImageLabel.Name = "ImageLabel"
View all 23 lines...

Answer this question