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.

local BillBoardGUI = game.ReplicatedStorage.Assets.BillboardGui

script.Parent.Touched:connect(function()
while wait(0) do
    local newBillBoardGUI = BillBoardGUI:Clone()
    newBillBoardGUI.Name = "BillboardGui"
    newBillBoardGUI.Parent = game.Workspace
    newBillBoardGUI:MakeJoints()
    newBillBoardGui:MoveTo(Players.DF_Zhang.Head.Position)
end
local ImageLabel = game.ReplicatedStorage.Assets.ImageLabel

script.Parent.Touched:connect(function()
    local newImageLabel - ImageLabel:Clone()
    newImageLabel.Name = "ImageLabel"
    newImageLabel.Parent = game.Workspace.BillboardGui
    newImageLabel.Properties.Image = http://www.roblox.com/asset/?id=16445550
end)
    script.Parent.BillboardGui.Size = script.Parent.BillboardGui.Size + UDim2.new(.01,0,.01,0)
    script.Parent.BillboardGui.StudsOffset = script.Parent.BillboardGui.StudsOffset + Vector3.new(0,.005,0)


end

Answer this question