local Full
game.ReplicatedStorage.Tools.BucketEvents.WaterFilling.OnServerEvent:Connect(function(player,Content)
Full = player.Character:FindFirstChild("Bucket").Water.Value
print(tostring(Full))
if Full == false then
local Item = player.Character.Bucket.BucketItem
if Item.Value == "Flour" then
Full = true
Item.Value = "BreadDough"
Content.Transparency = 0
Content.Material = Enum.Material.Mud
Content.Color = Color3.new(0.92549, 0.682353, 0.435294)
else
Full = true
Content.Transparency = 0.35
Content.Material = Enum.Material.Glass
Content.Color = Color3.new(0, 0.682353, 1)
Item.Value = "Water"
end
end
end)
This script is supposed to handle filling a bucket with water. When it is full, it’s supposed to set the Water BoolValue to true, but it stays false, causing the BreadDough section to be overrun and replaced with water. The tool is a server-side object, so it is able to access it, however it doesn’t change to value at all. Why?
A boolValue is an instance, with a property, Value, which stores the actual value, doing this just returns the instance, not the Value OP is trying to find.