Hi, I'm trying to make a system where when the player has the tool "Bucket" equipped and they click on the water, the water's size will go down by increments of -1. But the script as expected would make the water's Y coordinate switch to the smallest size a part can go (0.05.) If somebody could please help me that would be great! Thanks!
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Bucket = script.Parent
Bucket.Activated:Connect(function()
if Mouse.Target.Name == "Water" then
Mouse.Target.Size = Vector3.new(94.93,-1,134.44)
end
end)

3 comments
Also if you change the size of the part, it will change in the both Y sides (if you change the size or a part, the part's position won't change)
you can add " Mouse.Target.Position = Mouse.Target.Position + Vector3.new(0, -0.5, 0)
hope this helped