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?