Script doesnt works

This is working 100%, just tested it. Put a script inside of the part and the result will be this,


-- services --

local Players = game:GetService('Players')

-- constants --

local WATER = script.Parent

-- events --

WATER.Touched:Connect(function(hit)
	if Players:FindFirstChild(hit.Parent.Name) then
		local player = Players:GetPlayerFromCharacter(hit.Parent)
		if player.PlayerGui.time.meow.Value == 2 then
			repeat task.wait(0.1)
				WATER.Size += Vector3.new(0, 0.5, 0)
			until WATER.Size.Y >= 73.5 
		end
	end
end)
2 Likes