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

Any ideas why a BillboardGUI can't resize with multiple players on the server?

Asked by 6 years ago

I want to make a script that makes the health of a brick go down as you click it with a certain tool equipped (I have FE set to true). I got everything working but when I go into test mode with 2 players the health bar doesn't move. Here is the script fired be a RemoteEvent:

game.ReplicatedStorage.ChangeSandGui.OnServerEvent:connect(function(player, x)
local part = game.Workspace.Sand[x]
local val = part.Health.Value
local value = val/10
part.BillboardGui.Frame.TextBox.Size = UDim2.new(value,0, 1,0)
end)

Any ideas why it isn't working?

0
I figured it out (eventually). I added the line that makes the health go down into the script above instead of the script in the tool. Agueroooooo16 15 — 6y

Answer this question